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

Function doQuregsHaveIdenticalMemoryLayouts

quest/src/core/validation.cpp:1375–1386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1373}
1374
1375bool 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

Callers 3

Calls

no outgoing calls

Tested by

no test coverage detected