random_layers_normal

Module: pennylane.init

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

Creates a list of a single parameter array for RandomLayers(), drawn from a normal distribution.

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

Parameters:
  • n_layers (int) – number of layers
  • n_wires (int) – number of qubits
Keyword Arguments:
 
  • n_rots (int) – number of rotations, if None, n_rots=n_wires
  • mean (float) – mean of parameters
  • std (float) – standard deviation of parameters
  • seed (int) – seed used in sampling the parameters, makes function call deterministic
Returns:

list of parameter array