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

Function getNumPaulisInLine

quest/src/core/parser.cpp:166–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164
165
166int getNumPaulisInLine(string line) {
167
168 // simply count the non-whitespace chars in the paulis substring
169 string coeff, paulis;
170 separateStringIntoCoeffAndPaulis(line, coeff, paulis);
171 return count_if(paulis.begin(), paulis.end(), isNotWhiteSpace);
172}
173
174
175

Callers 1

Calls 1

Tested by

no test coverage detected