MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / parseWeightedPaulis

Function parseWeightedPaulis

quest/src/core/parser.cpp:479–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

477
478
479void 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
491qindex getNumLines(string lines) {

Callers 1

Calls 3

parser_parseComplexFunction · 0.85
parsePaulisFunction · 0.85

Tested by

no test coverage detected