| 208 | |
| 209 | |
| 210 | PauliStr paulis_getTensorProdOfPauliStr(PauliStr left, PauliStr right, int numQubits) { |
| 211 | |
| 212 | // computes left (tensor) right, assuming right is smaller than numQubits |
| 213 | PauliStr shifted = paulis_getShiftedPauliStr(left, numQubits); |
| 214 | |
| 215 | // return a new stack PauliStr instance (avoiding C++20 initialiser) |
| 216 | PauliStr out; |
| 217 | out.lowPaulis = right.lowPaulis | shifted.lowPaulis; |
| 218 | out.highPaulis = right.highPaulis | shifted.highPaulis; |
| 219 | return out; |
| 220 | } |
| 221 | |
| 222 | |
| 223 | PauliStr paulis_getKetAndBraPauliStr(PauliStr str, Qureg qureg) { |
no test coverage detected