quil-lang / qvm

The high-performance and featureful Quil simulator.
Other
411 stars 57 forks source link

Optionally hide wavefunction during batch mode #184

Closed notmgsk closed 4 years ago

appleby commented 4 years ago

What's the motivation for this change?

Would it make sense to roll this into the --quiet option, rather than adding a new flag?

notmgsk commented 4 years ago

Simulating a non-trivial number of qubits. n qubits means 2^(2n) lines of output, which is unhelpful if you just want to inspect classical memory, or view compilation info, or time the simulation, or ...

--quiet is for non-essential info like the banner. I think the wavefunction is essential, but occasionally a nuisance (unlike the banner which is always a nuisance).

notmgsk commented 4 years ago

You could get around the wavefunction issue by redirecting stdout to /dev/null but I imagine you still incur some non-zero cost in doing so. Certainly more than just not writing at all.