Skip to content

Commit

Permalink
Update qengine.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
vsoftco committed Dec 12, 2024
1 parent dec9ad2 commit a0e2470
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/qpp/classes/qengine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1269,8 +1269,7 @@ class QEngineT : public QBaseEngine<T, QCircuit> {
can_sample_from_(steps_as_iterators);
qeng_st_.can_sample_ = reps > 1 && can_sample;

// execute everything ONCE in the interval
// [0, first_measurement_discard_reset_pos)
// execute everything ONCE in the interval [0, optimize_up_to_pos)
for (auto it = steps_as_iterators[0]; it.get_ip() < optimize_up_to_pos;
++it) {
execute(it);
Expand Down

0 comments on commit a0e2470

Please sign in to comment.