sf.physics.fock.fock_state

mrmustard.physics.fock.fock_state(n)[source]

Returns a pure or mixed Fock state.

Parameters:

n (Sequence[int]) – a list of photon numbers

Return type:

ndarray[Tuple[int, ...], Union[TypeVar(R, float16, float32, float64), TypeVar(C, complex64, complex128), TypeVar(Z, int16, int32, int64), TypeVar(N, uint16, uint32, uint64)]]

Returns:

the Fock state up to cutoffs n+1