Skip to content

Commit

Permalink
fix to execute_circuit_steps_once_, all unit tests pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
a3moses committed Dec 9, 2024
1 parent 7bc91cf commit f41df21
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/qpp/classes/qengine.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,9 @@ class QEngineT : public QBaseEngine<T, QCircuit> {
}

bool measured = false;
for (auto it = steps[pos]; it.get_ip() < steps.size(); ++it) {
auto it = steps[0];
it.advance(pos);
for (; it.get_ip() < steps.size(); ++it) {
if (internal::is_measurement(it)) {
measured = true;
}
Expand Down

0 comments on commit f41df21

Please sign in to comment.