Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
499
string getNumQubitsStr(int numQubits) {
500
501
// e.g.
"1 qubit"
or
"2 qubits"
502
return toStr(numQubits) +
" qubit"
+ (numQubits>1?
"s"
:
""
);
503
}
504
505
506
string getQuregTypeStr(Qureg qureg) {
Callers
2
printMatrixHeader
Function · 0.85
print_header
Function · 0.85
Calls
1
toStr
Function · 0.85
Tested by
no test coverage detected