qml.init.basic_entangler_layers_normal

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

Creates a parameter array for BasicEntanglerLayers(), drawn from a normal distribution.

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

Parameters
  • n_layers (int) – number of layers

  • 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