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

Function mem_getMaxNumSuperOpQubitsBeforeIndexOverflow

quest/src/core/memory.cpp:112–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112int mem_getMaxNumSuperOpQubitsBeforeIndexOverflow() {
113
114 // the superoperator is square-bigger than a dense matrix
115 bool isDense = true;
116 int maxMatrixQubits = mem_getMaxNumMatrixQubitsBeforeIndexOverflow(isDense);
117 int maxSuperOpQubits = maxMatrixQubits / 2; // floors
118 return maxSuperOpQubits;
119}
120
121qindex mem_getMaxNumKrausMapMatricesBeforeIndexOverflow(int numQubits) {
122

Tested by

no test coverage detected