| 1373 | } |
| 1374 | |
| 1375 | bool doQuregsHaveIdenticalMemoryLayouts(Qureg a, Qureg b) { |
| 1376 | |
| 1377 | // same #dims, same size, same distribution and GPU status |
| 1378 | return ( |
| 1379 | (a.numQubits == b.numQubits ) && |
| 1380 | (a.isDensityMatrix == b.isDensityMatrix ) && |
| 1381 | (a.isDistributed == b.isDistributed ) && |
| 1382 | (a.isGpuAccelerated == b.isGpuAccelerated) |
| 1383 | ); |
| 1384 | |
| 1385 | // note that multithreading does not affecting memory layout |
| 1386 | } |
| 1387 | |
| 1388 | |
| 1389 |
no outgoing calls
no test coverage detected