all_prob_normalize_output
- exqalibur.all_prob_normalize_output(c: Annotated[numpy.typing.NDArray[numpy.float64], '[m, 1]', 'flags.writeable'], fsa: exqalibur.FSArray) None
Normalise a vector of reals with coefficients being the square root of the product of factorials of the photon count in each mode of states contained in a
FSArray
.For instance, if the
FsArray
iterates over |3,0>, |2,1> and |0,3>, this call would normalise a 3 elements vector with the coefficients 3!*0! = 6, 2!*1! = 2 and 0!*3! = 6.- Parameters:
c – Vector of reals
fsa – A
FSArray
. Its size must match the one of the vector
- Returns:
A normalised vector