Skip to content

Conversation

@shiavm006
Copy link
Contributor

@shiavm006 shiavm006 commented Nov 18, 2025

Purpose of PR

Prevent duplicate measurement operations when running Qiskit circuits multiple times by detecting existing Measure instructions before calling measure_all(). This keeps the circuit structure stable and ensures consistent measurement results across repeated executions.

Related Issues or PRs

Changes Made

  • Bug fix
  • New feature
  • Refactoring
  • Documentation
  • Test
  • CI/CD pipeline
  • Other

Breaking Changes

  • Yes
  • No

@shiavm006 shiavm006 mentioned this pull request Nov 20, 2025
10 tasks
@rawkintrevo
Copy link
Contributor

Thanks for the contribution @shiavm006 !!

@rawkintrevo rawkintrevo merged commit 09b2f8e into apache:main Nov 20, 2025
2 of 3 checks passed
@guan404ming guan404ming mentioned this pull request Nov 21, 2025
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] get_final_state_vector fails with measurements

2 participants