qsim icon indicating copy to clipboard operation
qsim copied to clipboard

Verbose boolean for QSimSimulator

Open dabacon opened this issue 3 years ago • 1 comments

Currently the simulator will print to stdio if there are no intermediate results. Often one want to run repeated simulations and does not want this to pollute the terminal. Suggest that there be a verbose flag on the simulator to turn on and off this printing.

dabacon avatar Nov 22 '20 05:11 dabacon

There is a verbosity flag in the qsim_options argument to QSimSimulator, e.g. QSimSimulator(qsim_options={'v': 1}). However, the default value of this flag is zero. We may be able to increase the verbosity level of certain log lines if you can identify which ones are causing issues, though.

(Part of me wants to suggest running with qsim_options={'v': -1} just to see what happens, but I have a feeling this will omit all log messages...)

95-martin-orion avatar Nov 23 '20 17:11 95-martin-orion