qml.init.simplified_two_design_initial_layer_normal

simplified_two_design_initial_layer_normal(n_wires, mean=0, std=0.1, seed=None)[source]

Creates a parameter array for the initial_layer argument of SimplifiedTwoDesign(), drawn from a uniform distribution.

The shape of the parameter array is (n_wires,) and each parameter is drawn from a normal distribution with mean mean and standard deviation std. The parameters define the Pauli-Y rotation angles applied in the initial layer.

Parameters
  • n_wires (int) – number of qubits

  • mean (float) – mean of parameters

  • std (float) – standard deviation of parameters

  • seed (int) – seed used in sampling the parameters, makes function call deterministic

Returns

parameter array

Return type

array

Contents

Using PennyLane

Development

API