Skip to content

Add Dynamic QFT benchmark#932

Open
kris70lesgo wants to merge 1 commit into
munich-quantum-toolkit:mainfrom
kris70lesgo:dynamic-qft-798
Open

Add Dynamic QFT benchmark#932
kris70lesgo wants to merge 1 commit into
munich-quantum-toolkit:mainfrom
kris70lesgo:dynamic-qft-798

Conversation

@kris70lesgo

@kris70lesgo kris70lesgo commented Jun 17, 2026

Copy link
Copy Markdown

Description

Adds a dynamic_qft benchmark implementing the semiclassical Dynamic QFT with mid-circuit measurements and classical feed-forward. The circuit mirrors the regular QFT operation order while replacing controlled phase gates from already measured qubits with classically controlled phase rotations.

Fixes #798

Checklist

  • The pull request only contains commits that are focused and relevant to this change.
  • I have added appropriate tests that cover the new/changed functionality.
  • I have updated the documentation to reflect these changes.
  • I have added entries to the changelog for any noteworthy additions, changes, fixes, or removals.
  • I have added migration instructions to the upgrade guide (if needed).
  • The changes follow the project's style guidelines and introduce no new warnings.
  • The changes are fully tested and pass the CI checks.
  • I have reviewed my own code changes.

If PR contains AI-assisted content:

  • I have disclosed the use of AI tools in the PR description as per our AI Usage Guidelines.
  • AI-assisted commits include an Assisted-by: [Model Name] via [Tool Name] footer.
  • I confirm that I have personally reviewed and understood all AI-generated content, and accept full responsibility for it.

Verification

  • uv run pytest tests/test_bench.py -k dynamic_qft -vv
  • uv run pytest
  • uvx nox -s lint

Assisted-by: GPT-5 via Codex
@codecov

codecov Bot commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kris70lesgo

Copy link
Copy Markdown
Author

@flowerthrower can u review the pr ?
This PR adds dynamic_qft with a compact implementation that follows the decomposed regular qft benchmark order directly
this version applies feed-forward phase corrections from already measured higher-index qubits before the next Hadamard, so the dynamic circuit mirrors QFT’s operation order more closely. It also uses the expected q/c register names, reversed classical output mapping to account for QFT swaps, no unnecessary helper functions, and no qubit-count cap.

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.

✨ Dynamical QFT

1 participant