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

Function validate_lindbladJumpOps

quest/src/core/validation.cpp:3831–3845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3829 */
3830
3831void validate_lindbladJumpOps(PauliStrSum* jumps, int numJumps, Qureg qureg, const char* caller) {
3832
3833 assertThat(numJumps >= 0, report::NEGATIVE_NUM_LINDBLAD_JUMP_OPS, caller);
3834
3835 // @todo
3836 // these error messages report as if each jump operator was "the" PauliStrSum
3837 // to a function expecting one, and should be tailored to them being "a" jump op
3838 for (int n=0; n<numJumps; n++) {
3839 validate_pauliStrSumFields(jumps[n], caller);
3840 validate_pauliStrSumTargets(jumps[n], qureg, caller);
3841 }
3842
3843 // separate validation checks whether there is sufficient memory to translate
3844 // all jump operators into terms of a super-propagator (and guards overflow)
3845}
3846
3847void validate_lindbladDampingRates(qreal* damps, int numJumps, const char* caller) {
3848

Callers 1

Calls 3

assertThatFunction · 0.85

Tested by

no test coverage detected