Skip to content

build: remove pytket-braket from the braket extra - #1176

Merged
ryanhill1 merged 6 commits into
mainfrom
ryanhill1-patch-3
Sep 4, 2026
Merged

build: remove pytket-braket from the braket extra#1176
ryanhill1 merged 6 commits into
mainfrom
ryanhill1-patch-3

Conversation

@ryanhill1

@ryanhill1 ryanhill1 commented May 4, 2026

Copy link
Copy Markdown
Member

Problem

pytket-braket in the braket extra serves exactly one runtime purpose: the IonQ-via-Braket gateset transform in BraketDevice.transform(), which rebases gates IonQ devices on Braket don't accept natively (Braket's SDK won't decompose them). Everything else about the Braket runtime works without it — the transform path is already guarded by graph.has_edge("pytket", "braket") and skips when absent. Meanwhile, keeping it in the extra couples every amazon-braket-sdk cap bump to pytket-braket's own pin on the same SDK.

Change

  • Drop pytket-braket from the braket extra (it stays in requirements-dev.txt, so CI still runs the tket tests).
  • The transform guard now logs which package restores the rebase instead of skipping silently — pip install pytket-braket re-enables it. A caplog test pins the hint and the circuit passing through unrebased.

Trade-off, stated plainly

qbraid[braket] users targeting IonQ devices through Braket lose automatic gate rebasing: circuits with unsupported gates will fail Braket-side validation until they install pytket-braket (the log now says so) or transpile themselves. All other Braket flows are unaffected — verified with the full tests/runtime/aws suite passing both without the package (tket tests skip) and with it (122 passed).

@coderabbitai

coderabbitai Bot commented May 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: e64ecd9e-3e91-44e1-9219-7ad2d045eded

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ryanhill1-patch-3

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ryanhill1

Copy link
Copy Markdown
Member Author

/update-changelog

@ryanhill1
ryanhill1 marked this pull request as ready for review May 13, 2026 22:18
@codecov

codecov Bot commented May 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

With pytket-braket out of the braket extra, the IonQ-via-Braket gateset
transform silently disappearing would leave users staring at raw Braket
gate-validation errors. The guard now logs which package restores the
transform, a caplog test pins the hint plus the circuit passing through
unrebased, and the changelog entry states the trade-off and the restore
path. Verified both ways: tests/runtime/aws passes without pytket-braket
installed (tket tests skip) and with it (122 passed, transform intact).
@argus-eye

argus-eye Bot commented Sep 4, 2026

Copy link
Copy Markdown

Argus review

Auto-review is off for this repo. Tick the box below to run a review on this PR.

  • Trigger Argus review

Estimated cost

  • Historical avg: ~325.6k tokens · ~$1.24 · across last 6 review(s)

Tip: you can also comment @argus-eye review at any time.

@ryanhill1 ryanhill1 changed the title Remove pytket-braket from braket extra [no ci] build: remove pytket-braket from the braket extra Sep 4, 2026
@ryanhill1
ryanhill1 merged commit 6026dd6 into main Sep 4, 2026
15 checks passed
@ryanhill1
ryanhill1 deleted the ryanhill1-patch-3 branch September 4, 2026 19:45
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.

2 participants