State¶
- class lightworks.State(state: list[int])¶
Custom data type to store information about a quantum state, as well as allowing a number of operations to act on the state.
- Parameters:
state (list) – The fock basis state to use with the class, this should be a list of photon numbers per mode.
- property n_modes: int¶
The total number of modes in the state.
- property n_photons: int¶
Returns the number of photons in a State.
- property s: list[int]¶
Returns a copy of the contents of the state as a list.