Functions for pre- or post-multiplying general single-qubit diagonal matrices (as DiagMatr1) upon density matrices.
More...
Functions for pre- or post-multiplying general single-qubit diagonal matrices (as DiagMatr1) upon density matrices.
◆ leftapplyDiagMatr1()
- Note
- Documentation for this function or struct is under construction!
- See also
- leftapplyCompMatr1()
Definition at line 154 of file multiplication.cpp.
154 {
155 validate_quregFields(qureg, __func__);
156 validate_target(qureg, target, __func__);
157 validate_matrixFields(matrix, __func__);
158
159 bool conj = false;
160 localiser_statevec_anyCtrlOneTargDiagMatr(qureg, none, none, target, matrix, conj);
161}
◆ rightapplyDiagMatr1()
| void rightapplyDiagMatr1 |
( |
Qureg | qureg, |
|
|
int | target, |
|
|
DiagMatr1 | matrix ) |
- Note
- Documentation for this function or struct is under construction!
- See also
- rightapplyCompMatr1()
Definition at line 163 of file multiplication.cpp.
163 {
164 validate_quregFields(qureg, __func__);
165 validate_quregIsDensityMatrix(qureg, __func__);
166 validate_target(qureg, target, __func__);
167 validate_matrixFields(matrix, __func__);
168
169 bool conj = false;
170 int qubit = util_getBraQubit(target, qureg);
171 localiser_statevec_anyCtrlOneTargDiagMatr(qureg, none, none, qubit, matrix, conj);
172}