random_layer_normal

Module: pennylane.init

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

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

The number of parameter array is (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_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