![]() |
The Quantum Exact Simulation Toolkit v4.3.0
|
Functions for applying the individual one-qubit Pauli operators. More...
Functions | |
| void | applyControlledPauliX (Qureg qureg, int control, int target) |
| void | applyControlledPauliY (Qureg qureg, int control, int target) |
| void | applyControlledPauliZ (Qureg qureg, int control, int target) |
| void | applyMultiControlledPauliX (Qureg qureg, int *controls, int numControls, int target) |
| void | applyMultiControlledPauliY (Qureg qureg, int *controls, int numControls, int target) |
| void | applyMultiControlledPauliZ (Qureg qureg, int *controls, int numControls, int target) |
| void | applyMultiStateControlledPauliX (Qureg qureg, int *controls, int *states, int numControls, int target) |
| void | applyMultiStateControlledPauliY (Qureg qureg, int *controls, int *states, int numControls, int target) |
| void | applyMultiStateControlledPauliZ (Qureg qureg, int *controls, int *states, int numControls, int target) |
| void | applyPauliX (Qureg qureg, int target) |
| void | applyPauliY (Qureg qureg, int target) |
| void | applyPauliZ (Qureg qureg, int target) |
Functions for applying the individual one-qubit Pauli operators.
| void applyControlledPauliX | ( | Qureg | qureg, |
| int | control, | ||
| int | target ) |
Applies a singly-controlled Pauli X operator (or NOT gate) upon the target qubit of qureg.
- See applyPauliX() for information about the base operation.
- See applyControlledCompMatr1() for information about
control.
Definition at line 809 of file operations.cpp.
| void applyControlledPauliY | ( | Qureg | qureg, |
| int | control, | ||
| int | target ) |
Applies a singly-controlled Pauli Y operator upon the target qubit of qureg.
- See applyPauliY() for information about the base operation.
- See applyControlledCompMatr1() for information about
control.
Definition at line 817 of file operations.cpp.
| void applyControlledPauliZ | ( | Qureg | qureg, |
| int | control, | ||
| int | target ) |
Applies a singly-controlled Pauli Z operator upon the target qubit of qureg.
- See applyPauliZ() for information about the base operation.
- See applyControlledCompMatr1() for information about
control.
Definition at line 825 of file operations.cpp.
| void applyMultiControlledPauliX | ( | Qureg | qureg, |
| int * | controls, | ||
| int | numControls, | ||
| int | target ) |
Applies a multiply-controlled Pauli X operator (or NOT gate) upon the target qubit of qureg.
- See applyPauliX() for information about the base operation.
- See applyMultiControlledCompMatr1() for information about
controls.
Definition at line 833 of file operations.cpp.
Referenced by applyMultiControlledPauliX().
| void applyMultiControlledPauliY | ( | Qureg | qureg, |
| int * | controls, | ||
| int | numControls, | ||
| int | target ) |
Applies a multiply-controlled Pauli Y operator (or NOT gate) upon the target qubit of qureg.
- See applyPauliY() for information about the base operation.
- See applyMultiControlledCompMatr1() for information about
controls.
Definition at line 841 of file operations.cpp.
Referenced by applyMultiControlledPauliY().
| void applyMultiControlledPauliZ | ( | Qureg | qureg, |
| int * | controls, | ||
| int | numControls, | ||
| int | target ) |
Applies a multiply-controlled Pauli Z operator (or NOT gate) upon the target qubit of qureg.
- See applyPauliZ() for information about the base operation.
- See applyMultiControlledCompMatr1() for information about
controls.
Definition at line 849 of file operations.cpp.
Referenced by applyMultiControlledPauliZ().
| void applyMultiStateControlledPauliX | ( | Qureg | qureg, |
| int * | controls, | ||
| int * | states, | ||
| int | numControls, | ||
| int | target ) |
Applies an arbitrarily-controlled Pauli X operator (or NOT gate) upon the target qubit of qureg, conditioned upon controls being in the corresponding states.
- See applyPauliX() for information about the base operation.
- See applyMultiStateControlledCompMatr1() for information about
controlsandstates.
Definition at line 857 of file operations.cpp.
Referenced by applyControlledPauliX(), applyMultiControlledPauliX(), applyMultiStateControlledPauliX(), and applyPauliX().
| void applyMultiStateControlledPauliY | ( | Qureg | qureg, |
| int * | controls, | ||
| int * | states, | ||
| int | numControls, | ||
| int | target ) |
Applies an arbitrarily-controlled Pauli Y operator upon the target qubit of qureg, conditioned upon controls being in the corresponding states.
- See applyPauliY() for information about the base operation.
- See applyMultiStateControlledCompMatr1() for information about
controlsandstates.
Definition at line 876 of file operations.cpp.
Referenced by applyControlledPauliY(), applyMultiControlledPauliY(), applyMultiStateControlledPauliY(), and applyPauliY().
| void applyMultiStateControlledPauliZ | ( | Qureg | qureg, |
| int * | controls, | ||
| int * | states, | ||
| int | numControls, | ||
| int | target ) |
Applies an arbitrarily-controlled Pauli Z operator upon the target qubit of qureg, conditioned upon controls being in the corresponding states.
- See applyPauliZ() for information about the base operation.
- See applyMultiStateControlledCompMatr1() for information about
controlsandstates.
Definition at line 886 of file operations.cpp.
Referenced by applyControlledPauliZ(), applyMultiControlledPauliZ(), applyMultiStateControlledPauliZ(), and applyPauliZ().
| void applyPauliX | ( | Qureg | qureg, |
| int | target ) |
Definition at line 785 of file operations.cpp.
| void applyPauliY | ( | Qureg | qureg, |
| int | target ) |
Definition at line 793 of file operations.cpp.
| void applyPauliZ | ( | Qureg | qureg, |
| int | target ) |
Definition at line 801 of file operations.cpp.