qml.init

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

Functions

cvqnn_layers_a_normal(n_layers, n_wires[, …]) Creates a parameter array for the displacement amplitude a of CVNeuralNetLayers().
cvqnn_layers_a_uniform(n_layers, n_wires[, …]) Creates a parameter array for the displacement amplitude a of CVNeuralNetLayers().
cvqnn_layers_all(n_layers, n_wires[, seed]) Creates a list of all eleven parameter arrays for CVNeuralNetLayers().
cvqnn_layers_kappa_normal(n_layers, n_wires) Creates a parameter array for the kerr parameter kappa of CVNeuralNetLayers().
cvqnn_layers_kappa_uniform(n_layers, n_wires) Creates a parameter array for the kerr parameter kappa of CVNeuralNetLayers().
cvqnn_layers_phi_a_normal(n_layers, n_wires) Creates a parameter array for the displacement phase phi_a of CVNeuralNetLayers().
cvqnn_layers_phi_a_uniform(n_layers, n_wires) Creates a parameter array for the displacement phase phi_a of CVNeuralNetLayers().
cvqnn_layers_phi_normal(n_layers, n_wires[, …]) Creates a parameter array for the phi input to the interferometers of CVNeuralNetLayers().
cvqnn_layers_phi_r_normal(n_layers, n_wires) Creates a parameter array for the squeezing phase phi_r of CVNeuralNetLayers().
cvqnn_layers_phi_r_uniform(n_layers, n_wires) Creates a parameter array for the squeezing phase phi_r of CVNeuralNetLayers().
cvqnn_layers_phi_uniform(n_layers, n_wires) Creates a parameter array for the phi input to the interferometers of CVNeuralNetLayers().
cvqnn_layers_r_normal(n_layers, n_wires[, …]) Creates a parameter array for the squeezing amplitude r of CVNeuralNetLayers().
cvqnn_layers_r_uniform(n_layers, n_wires[, …]) Creates a parameter array for the squeezing amplitude r of CVNeuralNetLayers().
cvqnn_layers_theta_normal(n_layers, n_wires) Creates a parameter array for the theta input to the interferometers of CVNeuralNetLayers().
cvqnn_layers_theta_uniform(n_layers, n_wires) Creates a parameter array for the theta input to the interferometers of CVNeuralNetLayers().
cvqnn_layers_varphi_normal(n_layers, n_wires) Creates a parameter array for the varphi input to the interferometers of CVNeuralNetLayers().
cvqnn_layers_varphi_uniform(n_layers, n_wires) Creates a parameter array for the varphi input to the interferometers of CVNeuralNetLayers().
interferometer_all(n_wires[, seed]) Creates a list of arrays for the three initial parameters of Interferometer(), all drawn from a uniform distribution with interval \([0, 2\pi]\).
interferometer_phi_normal(n_wires[, mean, …]) Creates a parameter array for the phi input of Interferometer(), drawn from a normal distribution.
interferometer_phi_uniform(n_wires[, low, …]) Creates a parameter array for the phi input of Interferometer(), drawn from a uniform distribution.
interferometer_theta_normal(n_wires[, mean, …]) Creates a parameter array for the theta input of Interferometer(), drawn from a normal distribution.
interferometer_theta_uniform(n_wires[, low, …]) Creates a parameter array for the theta input of Interferometer(), drawn from a uniform distribution.
interferometer_varphi_normal(n_wires[, …]) Creates a parameter array for the varphi input of Interferometer(), drawn from a normal distribution.
interferometer_varphi_uniform(n_wires[, …]) Creates a parameter array for the varphi input of Interferometer(), drawn from a uniform distribution.
random_layers_normal(n_layers, n_wires[, …]) Creates a parameter array for RandomLayers(), drawn from a normal distribution.
random_layers_uniform(n_layers, n_wires[, …]) Creates a parameter array for RandomLayers(), drawn from a uniform distribution.
strong_ent_layers_normal(n_layers, n_wires) Creates a parameter array for StronglyEntanglingLayers(), drawn from a normal distribution.
strong_ent_layers_uniform(n_layers, n_wires) Creates a parameter array for StronglyEntanglingLayers(), drawn from a uniform distribution.

Contents