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

Function assertMatrixNonEmpty

quest/src/core/validation.cpp:1811–1814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1809}
1810
1811void assertMatrixNonEmpty(int numQubits, const char* caller) {
1812
1813 assertThat(numQubits >= 1, report::NEW_MATRIX_NUM_QUBITS_NOT_POSITIVE, {{"${NUM_QUBITS}",numQubits}}, caller);
1814}
1815
1816void assertMatrixTotalNumElemsDontExceedMaxIndex(int numQubits, bool isDense, const char* caller) {
1817

Callers 1

Calls 1

assertThatFunction · 0.85

Tested by

no test coverage detected