| 136 | |
| 137 | |
| 138 | vector<int> paulis_getTargetInds(PauliStr str) { |
| 139 | |
| 140 | int maxInd = paulis_getIndOfLefmostNonIdentityPauli(str); |
| 141 | |
| 142 | vector<int> inds(0); |
| 143 | inds.reserve(maxInd+1); |
| 144 | |
| 145 | for (int i=0; i<=maxInd; i++) |
| 146 | if (paulis_getPauliAt(str, i) != 0) // Id |
| 147 | inds.push_back(i); |
| 148 | |
| 149 | return inds; |
| 150 | } |
| 151 | |
| 152 | |
| 153 | qindex paulis_getTargetBitMask(PauliStr str) { |
no test coverage detected