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

Function getNumQubitsStr

quest/src/core/printer.cpp:499–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497
498
499string getNumQubitsStr(int numQubits) {
500
501 // e.g. "1 qubit" or "2 qubits"
502 return toStr(numQubits) + " qubit" + (numQubits>1? "s":"");
503}
504
505
506string getQuregTypeStr(Qureg qureg) {

Callers 2

printMatrixHeaderFunction · 0.85
print_headerFunction · 0.85

Calls 1

toStrFunction · 0.85

Tested by

no test coverage detected