mrmustard.lab_dev.states

The classes representing states in quantum circuits.

Classes

BargmannEigenstate(modes[, alpha, ...])

The N-mode Bargmann eigenstate.

Coherent(modes[, x, y, x_trainable, ...])

The N-mode coherent state.

DM([representation, name])

Base class for density matrices.

DisplacedSqueezed(modes[, x, y, r, phi, ...])

The N-mode displaced squeezed vacuum state.

GDM(modes, beta[, symplectic, ...])

The N-mode mixed state described by a Gaussian gate that acts on a given thermal state.

GKet(modes[, symplectic, symplectic_trainable])

The N-mode pure state described by a Gaussian gate that acts on Vacuum.

Ket([representation, name])

Base class for all Hilbert space vectors.

Number(modes, n[, cutoffs])

The N-mode number state.

QuadratureEigenstate(modes[, x, phi, ...])

The N-mode Quadrature eigenstate.

Sauron(modes, n[, epsilon])

The n-th Sauron state is an approximation of the n-th Fock states using a ring of n+1 coherent states. The reference to the Lord of the Rings comes from the approximation becoming perfect in the limit for the radius of the ring going to zero where vacuum (= darkness) is. The formula for the Sauron state as a superposition of coherent states on a ring is given in https://arxiv.org/abs/2305.17099: .. math:: |text{Sauron}(n)rangle = frac{1}{mathcal{N}}sum_{k=0}^{n} e^{i 2pi k/(n+1)} |epsilon e^{2pi k/(n+1)}rangle_c, :type modes: Sequence[int] :param modes: The modes of the Sauron state. :type n: int :param n: The Fock state that is approximated. :type epsilon: float :param epsilon: The radius of the ring of coherent states, default is 0.1.

SqueezedVacuum(modes[, r, phi, r_trainable, ...])

The N-mode squeezed vacuum state.

State([representation, name])

Base class for all states.

Thermal(modes[, nbar, nbar_trainable, ...])

The N-mode thermal state.

TwoModeSqueezedVacuum(modes[, r, phi, ...])

The two-mode squeezed vacuum state.

Vacuum(modes)

The N-mode vacuum state in Bargmann representation.

Class Inheritance Diagram

Inheritance diagram of mrmustard.lab_dev.states.bargmann_eigenstate.BargmannEigenstate, mrmustard.lab_dev.states.coherent.Coherent, mrmustard.lab_dev.states.dm.DM, mrmustard.lab_dev.states.displaced_squeezed.DisplacedSqueezed, mrmustard.lab_dev.states.gstate.GDM, mrmustard.lab_dev.states.gstate.GKet, mrmustard.lab_dev.states.ket.Ket, mrmustard.lab_dev.states.number.Number, mrmustard.lab_dev.states.quadrature_eigenstate.QuadratureEigenstate, mrmustard.lab_dev.states.sauron.Sauron, mrmustard.lab_dev.states.squeezed_vacuum.SqueezedVacuum, mrmustard.lab_dev.states.base.State, mrmustard.lab_dev.states.thermal.Thermal, mrmustard.lab_dev.states.two_mode_squeezed_vacuum.TwoModeSqueezedVacuum, mrmustard.lab_dev.states.vacuum.Vacuum