(do not generate doxygen doc) * * Overloads for applyReferenceOp, to conveniently specify all families of * unitary operations on state-vectors. */
| 867 | * unitary operations on state-vectors. |
| 868 | */ |
| 869 | void applyReferenceOp( |
| 870 | QVector &state, int* ctrls, int numCtrls, int *targs, int numTargs, QMatrix op |
| 871 | ) { |
| 872 | int numQubits = calcLog2(state.size()); |
| 873 | QMatrix fullOp = getFullOperatorMatrix(ctrls, numCtrls, targs, numTargs, op, numQubits); |
| 874 | state = fullOp * state; |
| 875 | } |
| 876 | void applyReferenceOp( |
| 877 | QVector &state, int* ctrls, int numCtrls, int targ1, int targ2, QMatrix op |
| 878 | ) { |
no test coverage detected