qml.init.interferometer_all

interferometer_all(n_wires, seed=None)[source]

Creates a list of arrays for the three initial parameters of Interferometer(), all drawn from a uniform distribution with interval \([0, 2\pi]\).

  • theta is the array of beamsplitter transmittivity angles, of size (n_wires*(n_wires-1)/2, )

  • phi is the array of beamsplitter phases, of size (n_wires*(n_wires-1)/2, )

  • varphi is the array of local angles for the final rotation gates, of size (n_wires, )

Parameters

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

Keyword Arguments

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

Returns

list of parameter arrays

Contents

Using PennyLane

Development

API