# qml.init.cvqnn_layers_all¶

cvqnn_layers_all(n_layers, n_wires, seed=None)[source]

Creates a list of all eleven parameter arrays for CVNeuralNetLayers().

The template contains active gates (Squeezing, Displacement and Kerr gates), while all other gates are passive. Active gates change the photon number (and hence the energy) of the system, and are therefore drawn from a normal distribution with mean $$0$$ and a small standard deviation of $$0.1$$. Non-active gate parameters are angles and drawn from a uniform distribution with interval $$[0, 2\pi]$$.

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

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

Returns

list of parameter arrays