sf.ops¶
This module defines and implements the Python-embedded quantum programming language for continuous-variable (CV) quantum systems. The syntax is modeled after ProjectQ [33].
Classes¶
Fourier gate. |
|
|
Position displacement gate. |
|
Momentum displacement gate. |
|
Rotation gate. |
|
Quadratic phase gate. |
|
Cubic phase gate. |
|
Kerr gate. |
|
Controlled addition or sum gate in the position basis. |
|
Controlled phase gate in the position basis. |
|
Cross-Kerr gate. |
|
Phase space displacement gate. |
|
Phase space squeezing gate. |
|
Beamsplitter gate. |
|
Mach-Zehnder interferometer. |
|
Two-mode squeezing gate. |
|
Perform a loss channel operation on the specified mode. |
|
Perform a thermal loss channel operation on the specified mode. |
|
Phase space measurement-based squeezing gate. |
Perform an arbitrary multimode passive operation |
|
|
Prepare a mode in the vacuum state. |
|
Prepare a mode in a coherent state. |
|
Prepare a mode in a squeezed vacuum state. |
|
Prepare a mode in a displaced squeezed state. |
|
Prepare a mode in a Fock basis state. |
|
Prepare a mode in a cat state. |
|
Prepare a mode in a thermal state. |
|
Prepare mode(s) using the given ket vector(s) in the Fock basis. |
|
Prepare mode(s) using the given density matrix in the Fock basis. |
|
Prepare a mode as a linear combination of Gaussian functions in phase space. |
|
Prepare a mode in a finite energy Gottesman-Kitaev-Preskill (GKP) state. |
|
Photon counting measurement: measures a set of modes in the Fock basis. |
|
Performs a homodyne measurement, measures one quadrature of a mode. |
|
Performs a heterodyne measurement on a mode. |
|
Measures a set of modes with thresholded Fock-state measurements, i.e., measuring whether a mode contain zero or nonzero photons. |
|
Apply a linear interferometer to the specified qumodes. |
|
Embed a bipartite graph into an interferometer setup. |
|
Embed a graph into an interferometer setup. |
|
Apply a Gaussian symplectic transformation to the specified qumodes. |
|
Prepare the specified modes in a Gaussian state. |
|
Metaoperation for applying a single-mode operation to every mode in the register. |
Variables¶
Deletes one or more existing modes. |
|
Prepare a mode in the vacuum state. |
|
Performs a homodyne measurement, measures one quadrature of a mode. |
|
Performs a homodyne measurement, measures one quadrature of a mode. |
|
Performs a heterodyne measurement on a mode. |
|
Fourier gate. |