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

Function assertSuperOpNonEmpty

quest/src/core/validation.cpp:2609–2612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2607 */
2608
2609void assertSuperOpNonEmpty(int numQubits, const char* caller) {
2610
2611 assertThat(numQubits >= 1, report::NEW_SUPER_OP_NUM_QUBITS_NOT_POSITIVE, {{"${NUM_QUBITS}",numQubits}}, caller);
2612}
2613
2614void assertSuperOpTotalNumElemsDontExceedMaxIndex(int numQubits, bool isInKrausMap, const char* caller) {
2615

Callers 1

Calls 1

assertThatFunction · 0.85

Tested by

no test coverage detected