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

Function getBitAt

tests/utils/linalg.cpp:47–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47int getBitAt(qindex num, int ind) {
48 DEMAND( num >= 0 );
49
50 return (num >> ind) & 1;
51}
52
53
54vector<int> getBits(qindex num, int numBits) {

Callers 5

getAllRefProbsInnerFunction · 0.85
getBitsFunction · 0.85
getBitsAtFunction · 0.85
setBitsAtFunction · 0.85
getPartialTraceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected