Calculations on Gaussian objects¶
This module contains functions for performing calculations on objects in the Gaussian representations.
Functions¶

Returns the cov matrix and means vector of a state after undergoing a CPTP channel. 

Returns the dual channel 

Returns the 

Symplectic matrix of a Beamsplitter gate. 

Returns the combined 

Controlled NOT gate of twogaussian modes. 

Controlled PHASE gate of twogaussian modes. 

Returns the displacement vector for a displacement by \(alpha = x + iy\). 

Returns the fidelity of two gaussian states. 

Returns the covariance matrix of a Gaussian state. 

Returns the results of a generaldyne measurement. 

Joins the given covariance matrices into a single covariance matrix. 

Joins the given means vectors into a single means vector. 

Returns the log_negativity of a Gaussian state. 

Returns the 

Symplectic matrix of a MachZehnder gate. 

Returns the 

Returns the photon number covariance matrix given a Wigner covariance matrix and a means vector. 

Returns the photon number means vector given a Wigner covariance matrix and a means vector. 

Partitions the covariance matrix into the 

Partitions the means vector into the 

Returns the covariance matrix that corresponds to applying the partial transposition on the density matrix of a given set of modes. 

Returns the purity of the state with the given covariance matrix. 
Quadratic phase single mode gate. 


Symplectic matrix of a rotation gate. 

Returns the real covariance matrix and real means vector of a squeezed vacuum state. 

Symplectic matrix of a squeezing gate. 

Returns the sympletic eigenspectrum of a covariance matrix. 
Returns the inverse of a symplectic matrix. 


Returns the real covariance matrix and real means vector of a thermal state. 

Returns the covariances and means after discarding the specified modes. 

Returns the real covariance matrix and real means vector of a twomode squeezed vacuum state. 

Symplectic matrix of a twomode squeezing gate. 

Returns the real covariance matrix of the vacuum state. 

Returns the real covariance matrix and real means vector of the vacuum state. 

Returns the Von Neumann entropy. 
Variables¶

ndarray(shape, dtype=float, buffer=None, offset=0, 

Optional[X] is equivalent to Union[X, None]. 

alias of 

A generic version of collections.abc.Sequence. 

Deprecated alias to builtins.tuple. 

Union type; Union[X, Y] means either X or Y. 

ndarray(shape, dtype=float, buffer=None, offset=0, 
A class to manage the different backends supported by Mr Mustard. 

A class containing various settings that are used by Mr Mustard throughout a session. 