![]() |
The Quantum Exact Simulation Toolkit v4.3.0
|
Functions for applying general one-qubit diagonal matrices, as DiagMatr1. More...
Functions | |
| void | applyControlledDiagMatr1 (Qureg qureg, int control, int target, DiagMatr1 matrix) |
| void | applyDiagMatr1 (Qureg qureg, int target, DiagMatr1 matrix) |
| void | applyMultiControlledDiagMatr1 (Qureg qureg, int *controls, int numControls, int target, DiagMatr1 matrix) |
| void | applyMultiStateControlledDiagMatr1 (Qureg qureg, int *controls, int *states, int numControls, int target, DiagMatr1 matrix) |
Functions for applying general one-qubit diagonal matrices, as DiagMatr1.
Applies a singly-controlled one-qubit diagonal unitary matrix to the target qubit of qureg.
- See applyDiagMatr1() for information about the base operation.
- See applyControlledCompMatr1() for information about the
controlqubit.
Definition at line 217 of file operations.cpp.
Applies a one-qubit diagonal unitary matrix to the target qubit of qureg.
Definition at line 212 of file operations.cpp.
| void applyMultiControlledDiagMatr1 | ( | Qureg | qureg, |
| int * | controls, | ||
| int | numControls, | ||
| int | target, | ||
| DiagMatr1 | matrix ) |
Applies a multiply-controlled one-qubit diagonal unitary matrix upon the target qubit of qureg.
- See applyDiagMatr1() for information about
targetandmatrix.
- See applyMultiControlledCompMatr1() for information about
controlsandstates.
Definition at line 222 of file operations.cpp.
Referenced by applyMultiControlledDiagMatr1().
| void applyMultiStateControlledDiagMatr1 | ( | Qureg | qureg, |
| int * | controls, | ||
| int * | states, | ||
| int | numControls, | ||
| int | target, | ||
| DiagMatr1 | matrix ) |
Applies an arbitrarily-controlled one-qubit diagonal unitary matrix upon the target qubit of qureg, conditioned upon the controls being in the corresponding states.
- See applyDiagMatr1() for information about
targetandmatrix.
- See applyMultiStateControlledCompMatr1() for information about
controlsandstates.
Definition at line 227 of file operations.cpp.
Referenced by applyMultiQubitPhaseFlip(), applyMultiQubitPhaseShift(), and applyMultiStateControlledDiagMatr1().