Skip to content

Commit

Permalink
Update if case to use sample measure when shot is 1 (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
hitomitak authored and chriseclectic committed Apr 18, 2019
1 parent 3f87962 commit 43804b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulators/qasm/qasm_controller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ void QasmController::run_circuit_without_noise(const Circuit &circ,

// Check if measure sampler and optimization are valid
auto check = check_measure_sampling_opt(opt_circ);
if (check.first == false || shots == 1) {
if (check.first == false) {
// Perform standard execution if we cannot apply the
// measurement sampling optimization
while(shots-- > 0) {
Expand Down

0 comments on commit 43804b2

Please sign in to comment.