MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / applyReferenceMatrix

Function applyReferenceMatrix

tests/deprecated/test_utilities.cpp:982–987  ·  view source on GitHub ↗

(do not generate doxygen doc) * * Overloads for applyReferenceMatrix, to simply left-multiply a matrix (possibly * with additional control qubits) onto a state. */

Source from the content-addressed store, hash-verified

980 * with additional control qubits) onto a state.
981 */
982void applyReferenceMatrix(
983 QVector &state, int* ctrls, int numCtrls, int *targs, int numTargs, QMatrix op
984) {
985 // for state-vectors, the op is always just left-multiplied
986 applyReferenceOp(state, ctrls, numCtrls, targs, numTargs, op);
987}
988void applyReferenceMatrix(
989 QVector &state, int *targs, int numTargs, QMatrix op
990) {

Callers 1

test_operators.cppFile · 0.85

Calls 3

applyReferenceOpFunction · 0.85
calcLog2Function · 0.85
getFullOperatorMatrixFunction · 0.85

Tested by

no test coverage detected