qml.init.qaoa_embedding_normal¶
-
qaoa_embedding_normal
(n_layers, n_wires, mean=0, std=0.1, seed=None)[source]¶ Creates a parameter array for
QAOAEmbedding()
, drawn from a normal distribution.Each parameter is drawn from a normal distribution with
mean
andvariance
. The parameters define the the trainable angles of ‘ZZ interactions’ and the ‘local fields’ in the template.- Parameters
n_layers (int) – number of layers
n_wires (int) – number of qubits
mean (float) – mean of parameters
std (float) – standard deviation of parameters
seed (int) – seed used in sampling the parameters, makes function call deterministic
- Returns
parameter array
- Return type
array
Contents
Using PennyLane
Development
API
Downloads