mm.math.hermite_renormalized_diagonal_reorderedAB¶
- math.hermite_renormalized_diagonal_reorderedAB(B, C, cutoffs)¶
Renormalized multidimensional Hermite polynomial given by the “exponential” Taylor series of \(exp(C + Bx - Ax^2)\) at zero, where the series has \(sqrt(n!)\) at the denominator rather than \(n!\). Note the minus sign in front of
A
.Calculates the diagonal of the Fock representation (i.e. the PNR detection probabilities of all modes) by applying the recursion relation in a selective manner.
- Parameters:
A (
ndarray
) – The A matrix.B (
ndarray
) – The B vector.C (
ndarray
) – The C scalar.cutoffs (
Tuple
[int
]) – upper boundary of photon numbers in each mode
- Return type:
ndarray
- Returns:
The renormalized Hermite polynomial.
code/api/mrmustard.math.hermite_renormalized_diagonal_reorderedAB
Download Python script
Download Notebook
View on GitHub