![]() |
The Quantum Exact Simulation Toolkit v4.0.0
|
Functions for applying the two-qubit SWAP and related gates. More...
Functions | |
void | applyControlledSqrtSwap (Qureg qureg, int control, int qubit1, int qubit2) |
void | applyControlledSwap (Qureg qureg, int control, int qubit1, int qubit2) |
void | applyMultiControlledSqrtSwap (Qureg qureg, int *controls, int numControls, int qubit1, int qubit2) |
void | applyMultiControlledSwap (Qureg qureg, int *controls, int numControls, int qubit1, int qubit2) |
void | applyMultiStateControlledSqrtSwap (Qureg qureg, int *controls, int *states, int numControls, int qubit1, int qubit2) |
void | applyMultiStateControlledSwap (Qureg qureg, int *controls, int *states, int numControls, int qubit1, int qubit2) |
void | applySqrtSwap (Qureg qureg, int qubit1, int qubit2) |
void | applySwap (Qureg qureg, int qubit1, int qubit2) |
void | multiplySwap (Qureg qureg, int qubit1, int qubit2) |
Functions for applying the two-qubit SWAP and related gates.
void applyControlledSqrtSwap | ( | Qureg | qureg, |
int | control, | ||
int | qubit1, | ||
int | qubit2 ) |
Definition at line 616 of file operations.cpp.
void applyControlledSwap | ( | Qureg | qureg, |
int | control, | ||
int | qubit1, | ||
int | qubit2 ) |
Definition at line 568 of file operations.cpp.
void applyMultiControlledSqrtSwap | ( | Qureg | qureg, |
int * | controls, | ||
int | numControls, | ||
int | qubit1, | ||
int | qubit2 ) |
Definition at line 624 of file operations.cpp.
void applyMultiControlledSwap | ( | Qureg | qureg, |
int * | controls, | ||
int | numControls, | ||
int | qubit1, | ||
int | qubit2 ) |
Definition at line 576 of file operations.cpp.
void applyMultiStateControlledSqrtSwap | ( | Qureg | qureg, |
int * | controls, | ||
int * | states, | ||
int | numControls, | ||
int | qubit1, | ||
int | qubit2 ) |
Definition at line 632 of file operations.cpp.
Referenced by applyControlledSqrtSwap(), applyMultiControlledSqrtSwap(), and applySqrtSwap().
void applyMultiStateControlledSwap | ( | Qureg | qureg, |
int * | controls, | ||
int * | states, | ||
int | numControls, | ||
int | qubit1, | ||
int | qubit2 ) |
Definition at line 584 of file operations.cpp.
Referenced by applyControlledSwap(), applyMultiControlledSwap(), and applySwap().
void applySqrtSwap | ( | Qureg | qureg, |
int | qubit1, | ||
int | qubit2 ) |
Definition at line 608 of file operations.cpp.
void applySwap | ( | Qureg | qureg, |
int | qubit1, | ||
int | qubit2 ) |
Applies a SWAP gate between qubit1
and qubit2
of qureg
.
Definition at line 560 of file operations.cpp.
Referenced by applyQuantumFourierTransform().
void multiplySwap | ( | Qureg | qureg, |
int | qubit1, | ||
int | qubit2 ) |
Definition at line 553 of file operations.cpp.