| 342 | |
| 343 | |
| 344 | bool isInterpretablePauliStrSumLine(string line) { |
| 345 | |
| 346 | // checks whether line has the expected format; a real, imaginary or |
| 347 | // complex number (expressed as an integer, decimal, or in scientific |
| 348 | // notation) followed by 1 or more space characters, then one or |
| 349 | // more pauli codes/chars. It does NOT determine whether the coeff |
| 350 | // can actually be instantiated as a qcomp |
| 351 | return regex_match(line, regexes::weightedPaulis); |
| 352 | } |
| 353 | |
| 354 | |
| 355 | bool isPauliStrSumCoeffWithinQcompRange(string line) { |
no outgoing calls
no test coverage detected