| 379 | |
| 380 | |
| 381 | bool mem_canSuperOpFitInMemory(int numQubits, qindex numBytesPerNode) { |
| 382 | |
| 383 | // superoperators are square-bigger than their constituent dense matrices, and are never distributed |
| 384 | int numMatrixQubits = 2 * numQubits; |
| 385 | int numNodes = 1; |
| 386 | bool isDense = true; |
| 387 | return mem_canMatrixFitInMemory(numMatrixQubits, isDense, numNodes, numBytesPerNode); |
| 388 | } |
| 389 | |
| 390 | |
| 391 | bool mem_canPauliStrSumFitInMemory(qindex numTerms, qindex numBytesPerNode) { |
no test coverage detected