| 57 | |
| 58 | |
| 59 | void initPlusState(Qureg qureg) { |
| 60 | validate_quregFields(qureg, __func__); |
| 61 | |
| 62 | // |+> = sum_i 1/sqrt(2^N) |i> where 2^N = numAmps |
| 63 | // |+><+| = sum_ij 1/2^N |i><j| where 2^N = sqrt(numAmps) |
| 64 | qcomp amp = 1.0 / std::sqrt(qureg.numAmps); |
| 65 | localiser_statevec_initUniformState(qureg, amp); |
| 66 | } |
| 67 | |
| 68 | |
| 69 | void initPureState(Qureg qureg, Qureg pure) { |
no test coverage detected