qml.init

This module contains helper functions that generate initial parameters, for example to use in templates.

Strongly Entangling Circuit

strong_ent_layers_uniform(n_layers, n_wires) Creates a list of a single parameter array for StronglyEntanglingLayers(), drawn from a uniform distribution.
strong_ent_layers_normal(n_layers, n_wires) Creates a list of a single parameter array for StronglyEntanglingLayers(), drawn from a normal distribution.
strong_ent_layer_uniform(n_wires[, low, …]) Creates a list of a single parameter array for StronglyEntanglingLayer(), drawn from a uniform distribution.
strong_ent_layer_normal(n_wires[, mean, …]) Creates a list of a single parameter array for StronglyEntanglingLayer(), drawn from a normal distribution.

Random Circuit

random_layers_uniform(n_layers, n_wires[, …]) Creates a list of a single parameter array for RandomLayers(), drawn from a uniform distribution.
random_layers_normal(n_layers, n_wires[, …]) Creates a list of a single parameter array for RandomLayers(), drawn from a normal distribution.
random_layer_uniform(n_wires[, n_rots, low, …]) Creates a list of a single parameter array for RandomLayer(), drawn from a uniform distribution.
random_layer_normal(n_wires[, n_rots, mean, …]) Creates a list of a single parameter array for RandomLayer(), drawn from a normal distribution.

CV Neural Network

cvqnn_layers_uniform(n_layers, n_wires[, …]) Creates a list of eleven parameter arrays for CVNeuralNetLayers(), where non-active gate parameters are drawn from a uniform distribution and active parameters from a normal distribution.
cvqnn_layers_normal(n_layers, n_wires[, …]) Creates a list of eleven parameter arrays for CVNeuralNetLayers(), where both active and non-active gate parameters are drawn from normal distributions.
cvqnn_layer_uniform(n_wires[, low, high, …]) Creates a list of eleven parameter arrays for CVNeuralNetLayer(), where non-active gate parameters are drawn from a uniform distribution and active parameters from a normal distribution.
cvqnn_layer_normal(n_wires[, mean, std, …]) Creates a list of eleven parameter arrays for CVNeuralNetLayer(), where both active and non-active gate parameters are drawn from normal distributions.

Interferometer

interferometer_uniform(n_wires[, low, high, …]) Creates a list of three parameter arrays for an Interferometer(), drawn from a uniform distribution.
interferometer_normal(n_wires[, mean, std, seed]) Creates a list of three parameter arrays for an Interferometer(), drawn from a normal distribution.