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

Function areQubitsDisjoint

quest/src/core/validation.cpp:3562–3569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3560}
3561
3562bool areQubitsDisjoint(qindex qubitsMaskA, int* qubitsB, int numQubitsB) {
3563
3564 for (int n=0; n<numQubitsB; n++)
3565 if (getBit(qubitsMaskA, qubitsB[n]))
3566 return false;
3567
3568 return true;
3569}
3570
3571bool areQubitsDisjoint(int* qubitsA, int numQubitsA, int* qubitsB, int numQubitsB) {
3572

Calls 2

getBitFunction · 0.85
getBitMaskFunction · 0.85

Tested by

no test coverage detected