class CVOperators: (source)
Build operator matrices for continuously variable bosonic gates.
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 | 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 |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Creation operator |
Method | get |
Identity matrix |
Method | get_ |
Number operator |
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 | s |
Single-mode squeezing operator |
Method | s2 |
Two-mode squeezing operator |
Method | snap |
SNAP (Selective Number-dependent Arbitrary Phase) operator |
Method | testqubitorderf |
Undocumented |
Instance Variable | mat |
Undocumented |
Instance Variable | sparse |
Undocumented |
Two-mode beam splitter operator
Parameters | |
theta | phase |
cutoff | Undocumented |
cutoff | Undocumented |
Returns | |
csc_matrix | operator matrix |
SNAP gate creation for multiboson sampling purposes.
Parameters | |
max:int | the period of the mapping |
cutoff | Undocumented |
Returns | |
dia_matrix | operator matrix |
Controlled phase two-mode beam splitter operator
Parameters | |
theta:real | real phase |
cutoff | Undocumented |
cutoff | Undocumented |
Returns | |
csc_matrix | operator matrix |
Controlled displacement operator
Parameters | |
theta:real | displacement for qubit state 0 |
beta:real | displacement for qubit state 1. If None, use -alpha. |
cutoff | Undocumented |
Returns | |
bsr_matrix | operator matrix |
Controlled phase space rotation operator
Parameters | |
theta:real | phase |
cutoff | Undocumented |
Returns | |
csc_matrix | operator matrix |
Controlled phase space rotation operator around sigma^x
Parameters | |
theta:real | phase |
cutoff | Undocumented |
Returns | |
csc_matrix | operator matrix |
Controlled phase space rotation operator around sigma^x
Parameters | |
theta:real | phase |
cutoff | Undocumented |
Returns | |
csc_matrix | operator matrix |
General form of a controlled Schwinger gate
Parameters | |
beta | Undocumented |
theta | Undocumented |
phi | Undocumented |
theta | Undocumented |
phi | Undocumented |
cutoff | Undocumented |
cutoff | Undocumented |
params:real | [beta, theta_1, phi_1, theta_2, phi_2] |
Returns | |
csc_matrix | 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 | Undocumented |
Returns | |
csc_matrix | operator matrix |
Single-mode squeezing operator
Parameters | |
theta:real | squeeze |
cutoff | Undocumented |
Returns | |
csc_matrix | operator matrix |
Displacement operator
Parameters | |
alpha:real | displacement |
cutoff | Undocumented |
Returns | |
csc_matrix | operator matrix |
Echoed controlled displacement operator
Parameters | |
theta:real | displacement |
cutoff | Undocumented |
Returns | |
csr_matrix | operator matrix |
Exponential SWAP operator
Parameters | |
theta:real | rotation |
cutoff | Undocumented |
cutoff | Undocumented |
Returns | |
csc_matrix | 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_matrix | 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 |
Support gate for photon number readout (see Curtis et al., PRA (2021) and Wang et al., PRX (2020))
Parameters | |
max:int | the period of the mapping |
cutoff | Undocumented |
Returns | |
csc_matrix | operator matrix |
Phase space rotation operator
Parameters | |
theta:real | rotation |
cutoff | Undocumented |
Returns | |
csc_matrix | operator matrix |
Single-mode squeezing operator
Parameters | |
theta:real | squeeze |
cutoff | Undocumented |
Returns | |
csc_matrix | operator matrix |
Two-mode squeezing operator
Parameters | |
theta | Undocumented |
cutoff | Undocumented |
cutoff | Undocumented |
g:real | multiplied by 1j to yield imaginary phase |
Returns | |
csc_matrix | operator matrix |