class CVOperators: (source)
Build operator matrices for continuously variable bosonic gates.
| Static Method | call |
Call the operator function to build the array using the bound parameter values. |
| Method | ajc |
Anti-Jaynes-Cummings gate |
| Method | bs |
Two-mode beam splitter operator |
| Method | c |
SNAP gate creation for multiboson sampling purposes. |
| Method | cbs |
Controlled phase two-mode beam splitter operator |
| Method | cd |
Controlled displacement operator |
| Method | cr |
Controlled phase space rotation operator |
| Method | crx |
Controlled phase space rotation operator around sigma^x |
| Method | cry |
Controlled phase space rotation operator around sigma^x |
| Method | cschwinger |
General form of a controlled Schwinger gate |
| Method | csnap |
SNAP (Selective Number-dependent Arbitrary Phase) operator, with explicit sigma_z in exponential. Can be used to generate fock-number selective qubit rotations. |
| Method | csq |
Single-mode squeezing operator |
| Method | csum |
Conditional two-qumode sum gate |
| Method | d |
Displacement operator |
| Method | ecd |
Echoed controlled displacement operator |
| Method | eswap |
Exponential SWAP operator |
| Method | gate |
Converts matrix into gate. Called using ParameterizedUnitaryGate. |
| Method | get |
Annihilation operator |
| Method | get |
Creation operator |
| Method | get |
Identity matrix |
| Method | get_ |
Number operator |
| Method | get |
Helper function to construct creation/annihilation operators symbolically |
| Method | get |
Undocumented |
| Method | jc |
Jaynes-Cummings gate |
| Method | multicsnap |
SNAP (Selective Number-dependent Arbitrary Phase) operator for multiple Fock states. Generates an arbitrary number of fock-number selective qubit rotations, with the qubit that accrues the geometric phase explicit. |
| Method | multisnap |
SNAP (Selective Number-dependent Arbitrary Phase) operator for multiple Fock states. Generates an arbitrary number of fock-number selective qubit rotations. |
| Method | pnr |
Support gate for photon number readout (see Curtis et al., PRA (2021) and Wang et al., PRX (2020)) |
| Method | r |
Phase space rotation operator |
| Method | rb |
Rabi interaction gate |
| Method | s |
Single-mode squeezing operator |
| Method | s2 |
Two-mode squeezing operator |
| Method | s3 |
Three-mode squeezing operator |
| Method | snap |
SNAP (Selective Number-dependent Arbitrary Phase) operator |
| Method | sqr |
SQR gate (Liu et al, arXiv 2024) |
| Method | sum |
Two-qumode sum gate |
UnitaryFunc, params: Sequence[ complex | ParameterExpression], cutoffs: Sequence[ int]) -> NDArray[ np.complexfloating]:
(source)
¶
Call the operator function to build the array using the bound parameter values.
Anti-Jaynes-Cummings gate
| Parameters | |
theta:real | [0, 2pi) |
phi:real | [0, 2pi) |
cutoff:int | Undocumented |
| Returns | |
csc_array | operator matrix |
Controlled phase space rotation operator
| Parameters | |
theta:real | phase |
cutoff:int | Undocumented |
| Returns | |
csc_array | operator matrix |
Controlled phase space rotation operator around sigma^x
| Parameters | |
theta:real | phase |
cutoff:int | Undocumented |
| Returns | |
csc_array | operator matrix |
Controlled phase space rotation operator around sigma^x
| Parameters | |
theta:real | phase |
cutoff:int | Undocumented |
| Returns | |
csc_array | operator matrix |
SNAP (Selective Number-dependent Arbitrary Phase) operator, with explicit sigma_z in exponential. Can be used to generate fock-number selective qubit rotations.
| Parameters | |
theta:real | phase |
n:integer | Fock state in which the mode should acquire the phase |
cutoff:int | Undocumented |
| Returns | |
csc_array | operator matrix |
Converts matrix into gate. Called using ParameterizedUnitaryGate.
| Parameters | |
matrix:list | the (unitary) matrix that you wish to convert into a gate |
| Returns | |
csc_array | operator matrix |
Jaynes-Cummings gate
| Parameters | |
theta:real | [0, 2pi) |
phi:real | [0, 2pi) |
cutoff:int | Undocumented |
| Returns | |
csc_array | operator matrix |
SNAP (Selective Number-dependent Arbitrary Phase) operator for multiple Fock states. Generates an arbitrary number of fock-number selective qubit rotations, with the qubit that accrues the geometric phase explicit.
| Parameters | |
*args:List[reals, integers] | [List of phases, List of Fock states in which the mode should acquire the associated phase] |
| Returns | |
csr_matrix | operator matrix |
SNAP (Selective Number-dependent Arbitrary Phase) operator for multiple Fock states. Generates an arbitrary number of fock-number selective qubit rotations.
| Parameters | |
*args:List[reals, integers] | [List of phases, List of Fock states in which the mode should acquire the associated phase] |
| Returns | |
csr_matrix | operator matrix |
Phase space rotation operator
| Parameters | |
theta:real | rotation |
cutoff:int | Undocumented |
| Returns | |
csc_array | operator matrix |
SNAP (Selective Number-dependent Arbitrary Phase) operator
| Parameters | |
theta:real | phase |
n:integer | Fock state in which the mode should acquire the phase |
cutoff:int | Undocumented |
| Returns | |
csc_array | operator matrix |
SQR gate (Liu et al, arXiv 2024)
This function assumes that the parameters (minus the cutoff) are concatenated, so it should have length 3*n, where n is the number of distinct fock states to condition on.
- Returns
- csc_array: The operator matrix
| Parameters | |
*args:float | Undocumented |
| params | Gate parameters and cutoff, see CVCircuit.cv_sqr for the parameter structure |
| Returns | |
sp.csc_array | Undocumented |