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

Function validate_quregCanBeWorkspace

quest/src/core/validation.cpp:3992–4000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3990 */
3991
3992void validate_quregCanBeWorkspace(Qureg qureg, Qureg workspace, const char* caller) {
3993
3994 assertThat(
3995 doQuregsHaveIdenticalMemoryLayouts(qureg, workspace),
3996 report::QUREG_IS_INCOMPATIBLE_WITH_WORKSPACE, caller);
3997
3998 // @todo
3999 // check whether any of their memories overlap, which is forbidden
4000}
4001
4002void validate_numQuregsInSum(int numQuregs, const char* caller) {
4003

Callers 2

leftapplyPauliStrSumFunction · 0.85
rightapplyPauliStrSumFunction · 0.85

Calls 2

assertThatFunction · 0.85

Tested by

no test coverage detected