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

Function assertQuregNonEmpty

quest/src/core/validation.cpp:1539–1542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1537 */
1538
1539void assertQuregNonEmpty(int numQubits, const char* caller) {
1540
1541 assertThat(numQubits >= 1, report::NON_POSITIVE_NUM_QUBITS_IN_CREATE_QUREG, {{"${NUM_QUBITS}",numQubits}}, caller);
1542}
1543
1544void assertQuregDeployFlagsRecognised(int isDensMatr, int isDistrib, int isGpuAccel, int isMultithread, const char* caller) {
1545

Callers 1

validate_newQuregParamsFunction · 0.85

Calls 1

assertThatFunction · 0.85

Tested by

no test coverage detected