qml.init.cvqnn_layers_kappa_uniform

cvqnn_layers_kappa_uniform(n_layers, n_wires, low=0, high=0.1, seed=None)[source]

Creates a parameter array for the kerr parameter kappa of CVNeuralNetLayers().

The parameters are drawn from a uniform 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
  • low (float) – minimum value of uniform distribution

  • high (float) – maximum value of uniform distribution

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

Returns

parameter array

Return type

array

Contents

Using PennyLane

Development

API