| 110 | } |
| 111 | |
| 112 | int 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 | |
| 121 | qindex mem_getMaxNumKrausMapMatricesBeforeIndexOverflow(int numQubits) { |
| 122 |
no test coverage detected