Reck

class lightworks.interferometers.Reck(error_model: ErrorModel | None = None)

Maps a provided PhotonicCircuit to a Reck interferometer, implementing the configured error model across all components.

Parameters:

error_model (ErrorModel | None) – An error model object which implements variation of the interferometer parameters. If not specified then an ideal system will be assumed.

property error_model: ErrorModel

Returns currently used error model for the system.

map(circuit: PhotonicCircuit, seed: int | None = None) PhotonicCircuit

Maps a provided circuit onto the interferometer.

Parameters:
  • circuit (PhotonicCircuit) – The circuit to map onto the reck interferometer.

  • seed (int | None) – Set a random seed to produce identical results when implementing a probabilistic error model.

Returns:

The created Reck interferometer which implements

the programmed transformation.

Return type:

PhotonicCircuit