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

Function getBasisKets

quest/src/core/printer.cpp:488–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486
487
488vector<string> getBasisKets(qindex startInd, qindex numInds) {
489
490 vector<string> kets(numInds);
491
492 for (qindex i=0; i<numInds; i++)
493 kets[i] = std::string("|") + toStr(i+startInd) + std::string("⟩");
494
495 return kets;
496}
497
498
499string getNumQubitsStr(int numQubits) {

Callers 1

printVectorFunction · 0.85

Calls 1

toStrFunction · 0.85

Tested by

no test coverage detected