qml.init.interferometer_theta_uniform

interferometer_theta_uniform(n_wires, low=0, high=6.283185307179586, seed=None)[source]

Creates a parameter array for the theta input of Interferometer(), drawn from a uniform 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
  • low (float) – minimum value of uniform distribution

  • high (float) – maximum value of uniform distribution

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

Returns

parameter array

Return type

array

Contents

Using PennyLane

Development

API