mm.physics.fock.fock_state¶
- mrmustard.physics.fock.fock_state(n, cutoffs=None)[source]¶
The Fock array of a tensor product of one-mode
Number
states.- Parameters:
n (
Sequence
[int
]) – The photon numbers of the number states.cutoffs (
Union
[int
,Sequence
[int
],None
]) – The cutoffs of the arrays for the number states. If it is given as anint
, it is broadcasted to all the states. IfNone
, it defaults to[n1+1, n2+1, ...]
, whereni
is the photon number of the ``i``th mode.
- 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 array of a tensor product of one-mode
Number
states.
code/api/mrmustard.physics.fock.fock_state
Download Python script
Download Notebook
View on GitHub