Skip to content

✨ Add missing TKET decomposition and placement passes - #780

Merged
flowerthrower merged 1 commit into
v3/667-stochastic-actionsfrom
v3/paper-tket-passes
Aug 27, 2026
Merged

flowerthrower merged 1 commit into
v3/667-stochastic-actionsfrom
v3/paper-tket-passes

Conversation

@flowerthrower

Copy link
Copy Markdown
Member

🤖 AI text below 🤖

Description

Adds the TKET actions used by the paper prototype but missing from the production action registry:

  • optimization: KAKDecomposition(allow_swaps=False)
  • layout: GraphPlacement
  • layout: NoiseAwarePlacement

TKET placement maps are translated to Qiskit layouts and materialized with the existing Qiskit layout passes so the environment retains a complete TranspileLayout. TKET layout and routing actions are masked for circuits containing operations wider than two qubits, matching the prototype limitation.

This draft is stacked on #779. It intentionally contains only the raw action support; documentation and new tests are deferred.

Validation

  • repository lint, including ty
  • focused KAK optimization invariant test
  • direct GraphPlacement and NoiseAwarePlacement layout smokes
  • direct wide-operation mask and global-calibration-entry smokes

Checklist

  • The pull request only contains focused changes required for this feature.
  • New tests and documentation are intentionally deferred while the feature stack is assembled.
  • I reviewed the complete base-to-head diff.

If PR contains AI-assisted content:

  • Any agent that created, edited, or submitted GitHub content was explicitly authorized for that scope.
  • Every agent-authored or agent-edited public text body begins with the visible disclosure 🤖 *AI text below* 🤖.
  • I confirm that I have personally reviewed and understood all AI-generated content, and accept full responsibility for it.

@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.71605% with 14 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/mqt/predictor/rl/actions/tket_actions.py 82.2% 14 Missing ⚠️

📢 Thoughts on this report? Let us know!

Signed-off-by: flowerthrower <flowerthrower@users.noreply.github.com>
Assisted-by: GPT 5.6 via Codex
Base automatically changed from v3/paper-bqskit-passes to v3/667-stochastic-actions August 27, 2026 13:09
@flowerthrower
flowerthrower merged commit dce8c65 into main Aug 27, 2026
0 of 2 checks passed
@flowerthrower
flowerthrower deleted the v3/paper-tket-passes branch August 27, 2026 13:10
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.

1 participant