![]() |
The Quantum Exact Simulation Toolkit v4.0.0
|
Functions for applying many-qubit rotations around Pauli Z axis, and phase flips and shifts. More...
Functions | |
void | applyControlledPhaseGadget (Qureg qureg, int control, int *targets, int numTargets, qreal angle) |
void | applyControlledPhaseGadget (Qureg qureg, int control, std::vector< int > targets, qreal angle) |
void | applyMultiControlledPhaseGadget (Qureg qureg, int *controls, int numControls, int *targets, int numTargets, qreal angle) |
void | applyMultiControlledPhaseGadget (Qureg qureg, std::vector< int > controls, std::vector< int > targets, qreal angle) |
void | applyMultiQubitPhaseFlip (Qureg qureg, int *targets, int numTargets) |
void | applyMultiQubitPhaseFlip (Qureg qureg, std::vector< int > targets) |
void | applyMultiQubitPhaseShift (Qureg qureg, int *targets, int numTargets, qreal angle) |
void | applyMultiQubitPhaseShift (Qureg qureg, std::vector< int > targets, qreal angle) |
void | applyMultiStateControlledPhaseGadget (Qureg qureg, int *controls, int *states, int numControls, int *targets, int numTargets, qreal angle) |
void | applyMultiStateControlledPhaseGadget (Qureg qureg, std::vector< int > controls, std::vector< int > states, std::vector< int > targets, qreal angle) |
void | applyPhaseFlip (Qureg qureg, int target) |
void | applyPhaseGadget (Qureg qureg, int *targets, int numTargets, qreal angle) |
void | applyPhaseGadget (Qureg qureg, std::vector< int > targets, qreal angle) |
void | applyPhaseShift (Qureg qureg, int target, qreal angle) |
void | applyTwoQubitPhaseFlip (Qureg qureg, int target1, int target2) |
void | applyTwoQubitPhaseShift (Qureg qureg, int target1, int target2, qreal angle) |
void | multiplyPhaseGadget (Qureg qureg, int *targets, int numTargets, qreal angle) |
void | multiplyPhaseGadget (Qureg qureg, std::vector< int > targets, qreal angle) |
Functions for applying many-qubit rotations around Pauli Z axis, and phase flips and shifts.
void applyControlledPhaseGadget | ( | Qureg | qureg, |
int | control, | ||
int * | targets, | ||
int | numTargets, | ||
qreal | angle ) |
Definition at line 1500 of file operations.cpp.
Referenced by applyControlledPhaseGadget().
void applyControlledPhaseGadget | ( | Qureg | qureg, |
int | control, | ||
std::vector< int > | targets, | ||
qreal | angle ) |
Definition at line 1548 of file operations.cpp.
void applyMultiControlledPhaseGadget | ( | Qureg | qureg, |
int * | controls, | ||
int | numControls, | ||
int * | targets, | ||
int | numTargets, | ||
qreal | angle ) |
Definition at line 1508 of file operations.cpp.
Referenced by applyMultiControlledPhaseGadget().
void applyMultiControlledPhaseGadget | ( | Qureg | qureg, |
std::vector< int > | controls, | ||
std::vector< int > | targets, | ||
qreal | angle ) |
Definition at line 1553 of file operations.cpp.
void applyMultiQubitPhaseFlip | ( | Qureg | qureg, |
int * | targets, | ||
int | numTargets ) |
Definition at line 1632 of file operations.cpp.
Referenced by applyMultiQubitPhaseFlip(), applyPhaseFlip(), and applyTwoQubitPhaseFlip().
void applyMultiQubitPhaseFlip | ( | Qureg | qureg, |
std::vector< int > | targets ) |
Definition at line 1645 of file operations.cpp.
void applyMultiQubitPhaseShift | ( | Qureg | qureg, |
int * | targets, | ||
int | numTargets, | ||
qreal | angle ) |
Definition at line 1589 of file operations.cpp.
Referenced by applyMultiQubitPhaseShift(), applyPhaseShift(), and applyTwoQubitPhaseShift().
void applyMultiQubitPhaseShift | ( | Qureg | qureg, |
std::vector< int > | targets, | ||
qreal | angle ) |
Definition at line 1602 of file operations.cpp.
void applyMultiStateControlledPhaseGadget | ( | Qureg | qureg, |
int * | controls, | ||
int * | states, | ||
int | numControls, | ||
int * | targets, | ||
int | numTargets, | ||
qreal | angle ) |
Definition at line 1516 of file operations.cpp.
Referenced by applyControlledPhaseGadget(), applyMultiControlledPhaseGadget(), applyMultiStateControlledPhaseGadget(), and applyPhaseGadget().
void applyMultiStateControlledPhaseGadget | ( | Qureg | qureg, |
std::vector< int > | controls, | ||
std::vector< int > | states, | ||
std::vector< int > | targets, | ||
qreal | angle ) |
Definition at line 1558 of file operations.cpp.
void applyPhaseFlip | ( | Qureg | qureg, |
int | target ) |
Definition at line 1615 of file operations.cpp.
void applyPhaseGadget | ( | Qureg | qureg, |
int * | targets, | ||
int | numTargets, | ||
qreal | angle ) |
Definition at line 1492 of file operations.cpp.
Referenced by applyPhaseGadget().
void applyPhaseGadget | ( | Qureg | qureg, |
std::vector< int > | targets, | ||
qreal | angle ) |
Definition at line 1543 of file operations.cpp.
void applyPhaseShift | ( | Qureg | qureg, |
int | target, | ||
qreal | angle ) |
Definition at line 1572 of file operations.cpp.
void applyTwoQubitPhaseFlip | ( | Qureg | qureg, |
int | target1, | ||
int | target2 ) |
Applies a two-qubit phase flip upon qubit1
and qubit2
of qureg
.
Definition at line 1623 of file operations.cpp.
void applyTwoQubitPhaseShift | ( | Qureg | qureg, |
int | target1, | ||
int | target2, | ||
qreal | angle ) |
Applies a two-qubit phase flip upon qubit1
and qubit2
of qureg
.
Definition at line 1580 of file operations.cpp.
Referenced by applyQuantumFourierTransform().
void multiplyPhaseGadget | ( | Qureg | qureg, |
int * | targets, | ||
int | numTargets, | ||
qreal | angle ) |
Definition at line 1484 of file operations.cpp.
Referenced by multiplyPhaseGadget().
void multiplyPhaseGadget | ( | Qureg | qureg, |
std::vector< int > | targets, | ||
qreal | angle ) |
Definition at line 1538 of file operations.cpp.