| 3829 | */ |
| 3830 | |
| 3831 | void 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 | |
| 3847 | void validate_lindbladDampingRates(qreal* damps, int numJumps, const char* caller) { |
| 3848 |
no test coverage detected