qml.init.interferometer_varphi_normal

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

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

The array has shape (n_wires, ).

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