| 181 | } |
| 182 | |
| 183 | void rightapplyReferenceOperator(qmatrix& state, qmatrix matrix) { |
| 184 | DEMAND( state.size() == matrix.size() ); |
| 185 | |
| 186 | // we right-multiply upon density matrices only |
| 187 | state = state * matrix; |
| 188 | } |
| 189 | |
| 190 | |
| 191 | // overloads with ctrls, states and targs (given sub-operator) |
no test coverage detected