@private
| 341 | |
| 342 | /// @private |
| 343 | int getMaxNumTracedQubits(int numQubits) { |
| 344 | |
| 345 | // cannot reduce all qubits, nor so many that the final qureg is |
| 346 | // illegally distributed (which we enforce even upon the testsed |
| 347 | // non-distributed Quregs for simplicity) |
| 348 | |
| 349 | return std::min( |
| 350 | numQubits - 1, |
| 351 | numQubits - getLog2(getQuESTEnv().numNodes)); |
| 352 | } |
| 353 | |
| 354 | |
| 355 | TEST_CASE( "calcPartialTrace", TEST_CATEGORY ) { |
no test coverage detected