![]() |
The Quantum Exact Simulation Toolkit v4.0.0
|
Functions for applying general two-qubit diagonal matrices, as DiagMatr2. More...
Functions | |
void | applyControlledDiagMatr2 (Qureg qureg, int control, int target1, int target2, DiagMatr2 matr) |
void | applyDiagMatr2 (Qureg qureg, int target1, int target2, DiagMatr2 matr) |
void | applyMultiControlledDiagMatr2 (Qureg qureg, int *controls, int numControls, int target1, int target2, DiagMatr2 matr) |
void | applyMultiStateControlledDiagMatr2 (Qureg qureg, int *controls, int *states, int numControls, int target1, int target2, DiagMatr2 matr) |
void | multiplyDiagMatr2 (Qureg qureg, int target1, int target2, DiagMatr2 matr) |
Functions for applying general two-qubit diagonal matrices, as DiagMatr2.
void applyControlledDiagMatr2 | ( | Qureg | qureg, |
int | control, | ||
int | target1, | ||
int | target2, | ||
DiagMatr2 | matr ) |
Definition at line 307 of file operations.cpp.
Definition at line 301 of file operations.cpp.
void applyMultiControlledDiagMatr2 | ( | Qureg | qureg, |
int * | controls, | ||
int | numControls, | ||
int | target1, | ||
int | target2, | ||
DiagMatr2 | matr ) |
Definition at line 313 of file operations.cpp.
Referenced by applyMultiControlledDiagMatr2().
void applyMultiStateControlledDiagMatr2 | ( | Qureg | qureg, |
int * | controls, | ||
int * | states, | ||
int | numControls, | ||
int | target1, | ||
int | target2, | ||
DiagMatr2 | matr ) |
Definition at line 319 of file operations.cpp.
Referenced by applyMultiStateControlledDiagMatr2().
Definition at line 292 of file operations.cpp.