sf.physics.fock.autocutoffs¶
- mrmustard.physics.fock.autocutoffs(cov, means, probability)[source]¶
Returns the cutoffs of a Gaussian state by computing the 1-mode marginals until the probability of the marginal is less than
probability.- Parameters:
cov (
ndarray[Tuple[int,int],Union[TypeVar(R,float16,float32,float64),TypeVar(C,complex64,complex128),TypeVar(Z,int16,int32,int64),TypeVar(N,uint16,uint32,uint64)]]) – the covariance matrixmeans (
ndarray[Tuple[int],Union[TypeVar(R,float16,float32,float64),TypeVar(C,complex64,complex128),TypeVar(Z,int16,int32,int64),TypeVar(N,uint16,uint32,uint64)]]) – the means vectorprobability (
float) – the cutoff probability
- Returns:
the suggested cutoffs
- Return type:
Tuple[int, …]
code/api/mrmustard.physics.fock.autocutoffs
Download Python script
Download Notebook
View on GitHub