Skip to content

feat: optimize native controlled gates - #18

Merged
barghouthi merged 6 commits into
mainfrom
codex/native-controlled-gates
Sep 23, 2026
Merged

barghouthi merged 6 commits into
mainfrom
codex/native-controlled-gates

Conversation

@barghouthi

Copy link
Copy Markdown
Collaborator

Summary

  • Keep CCX, CCZ, CZ, and Rz native by default, with staged optional decomposition.
  • Select SuperOpt MURM synthesis bases from circuit gates or an explicit --superopt-gates list.
  • Extend PhaseFoldRand, CancelGates, CLI, Python bindings, and tests for native controlled gates.
  • Upgrade rsgridsynth to 0.2.2 and expand native-gate fuzz coverage.

Verification

  • cargo test --offline --quiet
  • cargo fmt --check

Lean changes and newly added Markdown documents are excluded.

Add native CZ, CCX, and CCZ handling across phase folding, cancellation, and MURM synthesis. Make decompositions opt-in with staged pre/post optimization, configurable synthesis bases, hardened caches, updated reporting, bindings, documentation, and exhaustive tests.
@barghouthi
barghouthi merged commit e4f18d3 into main Sep 23, 2026
21 checks passed
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