Skip to content

fix: allow task results that report outputs instead of measurements - #1369

Open
rmshaffer wants to merge 2 commits into
mainfrom
rmshaffer/outputs-only-result
Open

rmshaffer wants to merge 2 commits into
mainfrom
rmshaffer/outputs-only-result

Conversation

@rmshaffer

Copy link
Copy Markdown
Member

Issue #, if available:

Description of changes:

This change is necessary in order to accommodate the outputs support being added to the local simulator in amazon-braket/amazon-braket-default-simulator-python#416.

Testing done:

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.

A program that declares OpenQASM `output` variables can be reported
with per-shot `outputs` and no `measurements` or
`measurementProbabilities`. Parse such results instead of raising, and
include `outputs` in the error raised when none of the three is present.
@codecov

codecov Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (0ceb321) to head (f3b81bd).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1369   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          171       171           
  Lines        11669     11674    +5     
  Branches      1540      1541    +1     
=========================================
+ Hits         11669     11674    +5     

☔ View full report in Codecov by Harness.
📢 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.

@rmshaffer
rmshaffer marked this pull request as ready for review October 22, 2026 20:44
@rmshaffer
rmshaffer requested a review from a team as a code owner October 22, 2026 20:44

This branch has not been deployed

No deployments
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