![]() |
The Quantum Exact Simulation Toolkit v4.0.0
|
Functions for applying general many-qubit diagonal matrices, as DiagMatr. More...
Functions | |
void | applyControlledDiagMatr (Qureg qureg, int control, int *targets, int numTargets, DiagMatr matrix) |
void | applyControlledDiagMatr (Qureg qureg, int control, std::vector< int > targets, DiagMatr matrix) |
void | applyControlledDiagMatrPower (Qureg qureg, int control, int *targets, int numTargets, DiagMatr matrix, qcomp exponent) |
void | applyControlledDiagMatrPower (Qureg qureg, int control, std::vector< int > targets, DiagMatr matrix, qcomp exponent) |
void | applyDiagMatr (Qureg qureg, int *targets, int numTargets, DiagMatr matrix) |
void | applyDiagMatr (Qureg qureg, std::vector< int > targets, DiagMatr matrix) |
void | applyDiagMatrPower (Qureg qureg, int *targets, int numTargets, DiagMatr matrix, qcomp exponent) |
void | applyDiagMatrPower (Qureg qureg, std::vector< int > targets, DiagMatr matrix, qcomp exponent) |
void | applyMultiControlledDiagMatr (Qureg qureg, int *controls, int numControls, int *targets, int numTargets, DiagMatr matrix) |
void | applyMultiControlledDiagMatr (Qureg qureg, std::vector< int > controls, std::vector< int > targets, DiagMatr matrix) |
void | applyMultiControlledDiagMatrPower (Qureg qureg, int *controls, int numControls, int *targets, int numTargets, DiagMatr matrix, qcomp exponent) |
void | applyMultiControlledDiagMatrPower (Qureg qureg, std::vector< int > controls, std::vector< int > targets, DiagMatr matrix, qcomp exponent) |
void | applyMultiStateControlledDiagMatr (Qureg qureg, int *controls, int *states, int numControls, int *targets, int numTargets, DiagMatr matrix) |
void | applyMultiStateControlledDiagMatr (Qureg qureg, std::vector< int > controls, std::vector< int > states, std::vector< int > targets, DiagMatr matrix) |
void | applyMultiStateControlledDiagMatrPower (Qureg qureg, int *controls, int *states, int numControls, int *targets, int numTargets, DiagMatr matrix, qcomp exponent) |
void | applyMultiStateControlledDiagMatrPower (Qureg qureg, std::vector< int > controls, std::vector< int > states, std::vector< int > targets, DiagMatr matrix, qcomp exponent) |
void | multiplyDiagMatr (Qureg qureg, int *targets, int numTargets, DiagMatr matrix) |
void | multiplyDiagMatr (Qureg qureg, std::vector< int > targets, DiagMatr matrix) |
void | multiplyDiagMatrPower (Qureg qureg, int *targets, int numTargets, DiagMatr matrix, qcomp exponent) |
void | multiplyDiagMatrPower (Qureg qureg, std::vector< int > targets, DiagMatr matrix, qcomp exponent) |
Functions for applying general many-qubit diagonal matrices, as DiagMatr.
void applyControlledDiagMatr | ( | Qureg | qureg, |
int | control, | ||
int * | targets, | ||
int | numTargets, | ||
DiagMatr | matrix ) |
Definition at line 361 of file operations.cpp.
Referenced by applyControlledDiagMatr().
void applyControlledDiagMatr | ( | Qureg | qureg, |
int | control, | ||
std::vector< int > | targets, | ||
DiagMatr | matrix ) |
Definition at line 388 of file operations.cpp.
void applyControlledDiagMatrPower | ( | Qureg | qureg, |
int | control, | ||
int * | targets, | ||
int | numTargets, | ||
DiagMatr | matrix, | ||
qcomp | exponent ) |
Definition at line 439 of file operations.cpp.
Referenced by applyControlledDiagMatrPower().
void applyControlledDiagMatrPower | ( | Qureg | qureg, |
int | control, | ||
std::vector< int > | targets, | ||
DiagMatr | matrix, | ||
qcomp | exponent ) |
Definition at line 512 of file operations.cpp.
Definition at line 356 of file operations.cpp.
Referenced by applyDiagMatr().
Definition at line 383 of file operations.cpp.
void applyDiagMatrPower | ( | Qureg | qureg, |
int * | targets, | ||
int | numTargets, | ||
DiagMatr | matrix, | ||
qcomp | exponent ) |
Definition at line 425 of file operations.cpp.
Referenced by applyDiagMatrPower().
void applyDiagMatrPower | ( | Qureg | qureg, |
std::vector< int > | targets, | ||
DiagMatr | matrix, | ||
qcomp | exponent ) |
Definition at line 507 of file operations.cpp.
void applyMultiControlledDiagMatr | ( | Qureg | qureg, |
int * | controls, | ||
int | numControls, | ||
int * | targets, | ||
int | numTargets, | ||
DiagMatr | matrix ) |
Definition at line 366 of file operations.cpp.
Referenced by applyMultiControlledDiagMatr().
void applyMultiControlledDiagMatr | ( | Qureg | qureg, |
std::vector< int > | controls, | ||
std::vector< int > | targets, | ||
DiagMatr | matrix ) |
Definition at line 393 of file operations.cpp.
void applyMultiControlledDiagMatrPower | ( | Qureg | qureg, |
int * | controls, | ||
int | numControls, | ||
int * | targets, | ||
int | numTargets, | ||
DiagMatr | matrix, | ||
qcomp | exponent ) |
Definition at line 453 of file operations.cpp.
Referenced by applyMultiControlledDiagMatrPower().
void applyMultiControlledDiagMatrPower | ( | Qureg | qureg, |
std::vector< int > | controls, | ||
std::vector< int > | targets, | ||
DiagMatr | matrix, | ||
qcomp | exponent ) |
Definition at line 517 of file operations.cpp.
void applyMultiStateControlledDiagMatr | ( | Qureg | qureg, |
int * | controls, | ||
int * | states, | ||
int | numControls, | ||
int * | targets, | ||
int | numTargets, | ||
DiagMatr | matrix ) |
Definition at line 371 of file operations.cpp.
Referenced by applyMultiStateControlledDiagMatr().
void applyMultiStateControlledDiagMatr | ( | Qureg | qureg, |
std::vector< int > | controls, | ||
std::vector< int > | states, | ||
std::vector< int > | targets, | ||
DiagMatr | matrix ) |
Definition at line 398 of file operations.cpp.
void applyMultiStateControlledDiagMatrPower | ( | Qureg | qureg, |
int * | controls, | ||
int * | states, | ||
int | numControls, | ||
int * | targets, | ||
int | numTargets, | ||
DiagMatr | matrix, | ||
qcomp | exponent ) |
Definition at line 467 of file operations.cpp.
Referenced by applyControlledDiagMatrPower(), applyDiagMatrPower(), applyMultiControlledDiagMatrPower(), and applyMultiStateControlledDiagMatrPower().
void applyMultiStateControlledDiagMatrPower | ( | Qureg | qureg, |
std::vector< int > | controls, | ||
std::vector< int > | states, | ||
std::vector< int > | targets, | ||
DiagMatr | matrix, | ||
qcomp | exponent ) |
Definition at line 522 of file operations.cpp.
Definition at line 346 of file operations.cpp.
Referenced by multiplyDiagMatr().
Definition at line 378 of file operations.cpp.
void multiplyDiagMatrPower | ( | Qureg | qureg, |
int * | targets, | ||
int | numTargets, | ||
DiagMatr | matrix, | ||
qcomp | exponent ) |
Definition at line 415 of file operations.cpp.
Referenced by multiplyDiagMatrPower().
void multiplyDiagMatrPower | ( | Qureg | qureg, |
std::vector< int > | targets, | ||
DiagMatr | matrix, | ||
qcomp | exponent ) |
Definition at line 502 of file operations.cpp.