| 398 | |
| 399 | |
| 400 | qmatrix getProjector(int outcome) { |
| 401 | DEMAND( outcome == 0 || outcome == 1 ); |
| 402 | |
| 403 | qmatrix out = getZeroMatrix(2); |
| 404 | out[outcome][outcome] = 1.; |
| 405 | return out; |
| 406 | } |
| 407 | |
| 408 | |
| 409 | qmatrix getProjector(vector<int> targets, vector<int> outcomes, int numQubits) { |
no test coverage detected