Skip to content

Commit

Permalink
Remove print in qsim_simulator when sampling from final state vector (t…
Browse files Browse the repository at this point in the history
…ensorflow#461)

This print results in very verbose output when using QSimSimulator. Could also convert it to debug logging if people think it's still helpful to have.

Review: @95-martin-orion
  • Loading branch information
maffoo authored Oct 25, 2021
1 parent 20f8307 commit a058fc9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions qsimcirq/qsim_simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,6 @@ def _sample_measure_results(
sampler_fn = self._sim_module.qsim_sample

if not noisy and program.are_all_measurements_terminal() and repetitions > 1:
print(
"Provided circuit has no intermediate measurements. "
+ "Sampling repeatedly from final state vector."
)
# Measurements must be replaced with identity gates to sample properly.
# Simply removing them may omit qubits from the circuit.
for i in range(len(program.moments)):
Expand Down

0 comments on commit a058fc9

Please sign in to comment.