![]() |
The Quantum Exact Simulation Toolkit v4.3.0
|
Functions for overwriting a channel's GPU (VRAM) memory with its CPU (RAM) contents. More...
Functions | |
| void | syncKrausMap (KrausMap map) |
| void | syncSuperOp (SuperOp op) |
Functions for overwriting a channel's GPU (VRAM) memory with its CPU (RAM) contents.
These functions are only necessary when the user wishes to manually modify the elements of a channel (in lieu of using the Setters), to thereafter synchronise the changes to the GPU copy of the channel. These functions have no effect when running without GPU-acceleration, but remain legal and harmless to call (to achieve platform agnosticism).
| void syncKrausMap | ( | KrausMap | map | ) |
Updates the internal state of map, necessary after manually modifying KrausMap::matrices.
| [in,out] | map | the KrausMap to synchronise. |
| error |
|
Definition at line 236 of file channels.cpp.
Referenced by TEST_CASE().
| void syncSuperOp | ( | SuperOp | op | ) |
Updates the internal state of op, necessary after manually modifying SuperOp::cpuElems or SuperOp::cpuElemsFlat.
| [in,out] | op | the SuperOp to synchronise. |
| error |
|
Definition at line 223 of file channels.cpp.
Referenced by syncKrausMap(), and TEST_CASE().