Question on Memory-driven Approximation Simulation and User-defined Memory Threshold #246
-
I am reading the paper "As accurate as needed, as efficient as possible: Approximations in DD-based quantum circuit simulation" under the "Memory-driven Approximation" section the paper mentions the following: "...size of the decision diagram representing the state is compared to the user-defined threshold. If that threshold is exceeded, the quantum state is approximated targeting the single-round fidelity (which is also given by the user)" Running the "./ddsim_simple -h" shows the following approximation-related options:
I'm assuming I can use the option Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Many thanks for opening this discussion. I believe @hillmich can best answer that as he was the one implementing the feature. |
Beta Was this translation helpful? Give feedback.
-
The option Using the available memory (or fraction thereof) as limit has the disadvantages that (i) the DD can still grow larger than this limit during the application of an operation and (ii) if the DD occupies several GiB of memory performance will already suffer. |
Beta Was this translation helpful? Give feedback.
The option
memory
selects the memory-driven approximation, that's correct. The threshold is determined automatically by comparing the number of nodes in the DD to the GarbageCollection limit. If the number is bigger than this limit, approximation is performed with the--step_fidelity
fidelity.Using the available memory (or fraction thereof) as limit has the disadvantages that (i) the DD can still grow larger than this limit during the application of an operation and (ii) if the DD occupies several GiB of memory performance will already suffer.