![]() |
The Quantum Exact Simulation Toolkit v4.3.0
|
Functions for destroying existing channel data structures. More...
Functions | |
| void | destroyKrausMap (KrausMap map) |
| void | destroySuperOp (SuperOp op) |
Functions for destroying existing channel data structures.
| void destroyKrausMap | ( | KrausMap | map | ) |
Destroys a KrausMap, freeing its Kraus operators and internal SuperOp.
Since map is passed by value, this function cannot nullify the caller's copy of the KrausMap fields. The caller must not use map after destruction.
| [in] | map | the KrausMap to destroy. |
| error |
|
Definition at line 210 of file channels.cpp.
Referenced by TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), TEST_CASE(), and TEST_CASE().
| void destroySuperOp | ( | SuperOp | op | ) |
Destroys a SuperOp, freeing all its CPU and GPU memory.
Since op is passed by value, this function cannot nullify the caller's copy of the SuperOp fields. The caller must not use op after destruction.
| [in] | op | the SuperOp to destroy. |
| error |
|
Definition at line 203 of file channels.cpp.
Referenced by TEST_CASE(), TEST_CASE(), TEST_CASE(), and TEST_CASE().