![]() |
The Quantum Exact Simulation Toolkit v4.0.0
|
Functions for applying general many-target dense matrices, as CompMatr. More...
Functions | |
void | applyCompMatr (Qureg qureg, int *targets, int numTargets, CompMatr matr) |
void | applyControlledCompMatr (Qureg qureg, int control, int *targets, int numTargets, CompMatr matr) |
void | applyMultiControlledCompMatr (Qureg qureg, int *controls, int numControls, int *targets, int numTargets, CompMatr matr) |
void | applyMultiStateControlledCompMatr (Qureg qureg, int *controls, int *states, int numControls, int *targets, int numTargets, CompMatr matr) |
void | multiplyCompMatr (Qureg qureg, int *targets, int numTargets, CompMatr matrix) |
Functions for applying general many-target dense matrices, as CompMatr.
Let \( M = \) matrix
. The qubits within targets
are treated to be ordered least to most significant with respect to \( M \). That is, if \( M \) was hypothetically separable single-qubit matrices
\[ M \equiv A \otimes B \otimes C \otimes \dots \]
then this function would effect
\[ \hat{M}_{\text{targets}} \equiv A_{\text{targets}[0]} B_{\text{targets}[1]} C_{\text{targets}[2]} \dots \]
Definition at line 186 of file operations.cpp.
Referenced by applyCompMatr().
void applyControlledCompMatr | ( | Qureg | qureg, |
int | control, | ||
int * | targets, | ||
int | numTargets, | ||
CompMatr | matr ) |
Definition at line 191 of file operations.cpp.
Referenced by applyControlledCompMatr().
void applyMultiControlledCompMatr | ( | Qureg | qureg, |
int * | controls, | ||
int | numControls, | ||
int * | targets, | ||
int | numTargets, | ||
CompMatr | matr ) |
Definition at line 196 of file operations.cpp.
Referenced by applyMultiControlledCompMatr().
void applyMultiStateControlledCompMatr | ( | Qureg | qureg, |
int * | controls, | ||
int * | states, | ||
int | numControls, | ||
int * | targets, | ||
int | numTargets, | ||
CompMatr | matr ) |
Definition at line 201 of file operations.cpp.
Referenced by applyMultiStateControlledCompMatr().
Definition at line 176 of file operations.cpp.
Referenced by multiplyCompMatr().