![]() |
The Quantum Exact Simulation Toolkit v4.2.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) |
Functions for applying the two-qubit SWAP and related gates.
| void applyControlledSqrtSwap | ( | Qureg | qureg, |
| int | control, | ||
| int | qubit1, | ||
| int | qubit2 ) |
Definition at line 723 of file operations.cpp.
| void applyControlledSwap | ( | Qureg | qureg, |
| int | control, | ||
| int | qubit1, | ||
| int | qubit2 ) |
Definition at line 660 of file operations.cpp.
| void applyMultiControlledSqrtSwap | ( | Qureg | qureg, |
| int * | controls, | ||
| int | numControls, | ||
| int | qubit1, | ||
| int | qubit2 ) |
Definition at line 731 of file operations.cpp.
Referenced by applyMultiControlledSqrtSwap().
| void applyMultiControlledSwap | ( | Qureg | qureg, |
| int * | controls, | ||
| int | numControls, | ||
| int | qubit1, | ||
| int | qubit2 ) |
Definition at line 668 of file operations.cpp.
Referenced by applyMultiControlledSwap().
| void applyMultiStateControlledSqrtSwap | ( | Qureg | qureg, |
| int * | controls, | ||
| int * | states, | ||
| int | numControls, | ||
| int | qubit1, | ||
| int | qubit2 ) |
Definition at line 739 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 676 of file operations.cpp.
Referenced by applyControlledSwap(), applyMultiControlledSwap(), applyMultiStateControlledSwap(), and applySwap().
| void applySqrtSwap | ( | Qureg | qureg, |
| int | qubit1, | ||
| int | qubit2 ) |
Definition at line 715 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 652 of file operations.cpp.
Referenced by applyQuantumFourierTransform().