| 477 | |
| 478 | |
| 479 | void parseWeightedPaulis(string line, qcomp &coeff, PauliStr &pauli, bool rightIsLeastSignificant) { |
| 480 | |
| 481 | // separate line into substrings |
| 482 | string coeffStr, pauliStr; |
| 483 | separateStringIntoCoeffAndPaulis(line, coeffStr, pauliStr); |
| 484 | |
| 485 | // parse each, overwriting calller primitives |
| 486 | coeff = parser_parseComplex(coeffStr); |
| 487 | pauli = parsePaulis(pauliStr, rightIsLeastSignificant); |
| 488 | } |
| 489 | |
| 490 | |
| 491 | qindex getNumLines(string lines) { |
no test coverage detected