qml.init.interferometer_phi_normal

interferometer_phi_normal(n_wires, mean=0, std=0.1, seed=None)[source]

Creates a parameter array for the phi input of Interferometer(), drawn from a normal distribution.

The array has shape (n_wires*(n_wires-1)/2, ).

Parameters

n_wires (int) – number of modes that the interferometer acts on

Keyword Arguments
  • mean (float) – mean of normal distribution

  • std (float) – standard deviation of normal distribution

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

Returns

parameter array

Return type

array

Contents

Using PennyLane

Development

API