Skip to content

fix: call ProgramContext constructor#93

Merged
rmshaffer merged 7 commits intomainfrom
rmshaffer/program-context-init
Mar 16, 2026
Merged

fix: call ProgramContext constructor#93
rmshaffer merged 7 commits intomainfrom
rmshaffer/program-context-init

Conversation

@rmshaffer
Copy link
Contributor

@rmshaffer rmshaffer commented Mar 12, 2026

Issue #, if available:

Description of changes:
Ensures compatibility with amazon-braket/amazon-braket-default-simulator-python#347 by calling the __init__ method of the ProgramContext parent class.

Also updates linters and dependencies to ensure that CI passes after various recent updates, notably including PennyLaneAI/diastatic-malt#8 which replaces gast usage with ast.

Testing done:
tox passes.

Merge Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

General

Tests

  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have checked that my tests are not configured for a specific region or account (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov
Copy link

codecov bot commented Mar 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (db59483) to head (49ffe84).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #93   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           48        48           
  Lines         1997      1987   -10     
  Branches       228       228           
=========================================
- Hits          1997      1987   -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

context. Default: None.
"""
super(ProgramContext, self).__init__()
super().__init__(circuit)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to reviewers: this is the only actual logic change in the PR. The rest of the changes in this PR are for linters/tests and are unrelated to this.

@rmshaffer rmshaffer marked this pull request as ready for review March 12, 2026 18:35
@rmshaffer rmshaffer requested a review from a team as a code owner March 12, 2026 18:35
@rmshaffer rmshaffer requested a review from speller26 March 13, 2026 17:36
@rmshaffer rmshaffer merged commit eb8f7fb into main Mar 16, 2026
18 checks passed
@rmshaffer rmshaffer deleted the rmshaffer/program-context-init branch March 16, 2026 15:38
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