qml.init.cvqnn_layers_phi_r_normal

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

Creates a parameter array for the squeezing phase phi_r of CVNeuralNetLayers().

The parameters are drawn from a normal distribution.

The shape of the arrays is (n_layers, n_wires).

Parameters
  • n_layers (int) – number of layers of the CV Neural Net

  • n_wires (int) – number of modes of the CV Neural Net

Keyword Arguments
  • mean (float) – mean of normal distribution

  • std (float) – standard deviation of normal distribution

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

Returns

parameter array

Return type

array

Contents

Using PennyLane

Development

API