| 521 | |
| 522 | template <NumQubitsFlag Targs, ArgsFlag Args> |
| 523 | void freeRemainingArgs(auto args) { |
| 524 | |
| 525 | if constexpr (Targs == any && Args == compmatr) |
| 526 | destroyCompMatr(std::get<0>(args)); |
| 527 | |
| 528 | if constexpr (Targs == any && Args == diagmatr) |
| 529 | destroyDiagMatr(std::get<0>(args)); |
| 530 | |
| 531 | if constexpr (Targs == any && Args == diagpower) |
| 532 | destroyDiagMatr(std::get<0>(args)); |
| 533 | } |
| 534 | |
| 535 | |
| 536 | /* |
nothing calls this directly
no test coverage detected