Skip to content

feat: Split program sets#1249

Merged
speller26 merged 18 commits into
mainfrom
split
Jun 19, 2026
Merged

feat: Split program sets#1249
speller26 merged 18 commits into
mainfrom
split

Conversation

@speller26

@speller26 speller26 commented May 6, 2026

Copy link
Copy Markdown
Member

Introduce split method to ProgramSet to split program set into a list of program sets each with at most an allowed number of executables.

Also fixed coverage output when running tox.

Issue #, if available:

Description of changes:

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.

`ProgramSet.split` takes in a `max_excutables` parameter, so that the generated program sets will contain at most that many executables.

Also fixed coverage output when running `tox`.
@speller26 speller26 requested a review from yitchen-tim May 6, 2026 20:27
@speller26 speller26 requested a review from a team as a code owner May 6, 2026 20:27
@codecov

codecov Bot commented May 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (232b71d) to head (a853fc7).

Additional details and impacted files
@@            Coverage Diff             @@
##              main     #1249    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          170       170            
  Lines        11011     11214   +203     
  Branches      1413      1450    +37     
==========================================
+ Hits         11011     11214   +203     

☔ 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.

@sesmart sesmart left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Very cool 😄, just some notes on usability. Any reason the input_set is taken as the major counting index before observables? Just coincidence of orderings?

Comment thread src/braket/program_sets/program_set.py Outdated
Comment thread src/braket/program_sets/program_set.py Outdated
Comment thread src/braket/program_sets/program_set.py Outdated
Comment thread src/braket/program_sets/program_set.py Outdated
Comment thread test/unit_tests/braket/program_sets/test_program_set.py Outdated
Comment thread src/braket/program_sets/program_set.py Outdated
Comment thread src/braket/program_sets/program_set.py Outdated
@speller26 speller26 changed the title feat: Method to split program set feat: Splitting program sets and merging results May 9, 2026
@speller26 speller26 changed the title feat: Splitting program sets and merging results feat: Split program sets May 10, 2026
@speller26

speller26 commented May 10, 2026

Copy link
Copy Markdown
Member Author

Results merging has been moved to #1254

@github-actions github-actions Bot removed the CI label May 26, 2026
@speller26 speller26 requested review from sesmart and yitchen-tim May 26, 2026 21:33
Comment thread src/braket/program_sets/program_set.py
Comment thread src/braket/program_sets/program_set.py
Comment thread src/braket/program_sets/program_set.py
Comment thread src/braket/program_sets/program_set.py
Comment thread src/braket/program_sets/program_set.py
@speller26

Copy link
Copy Markdown
Member Author

Do not review program_set_quantum_task_result.py and test_program_set_quantum_task_result.py; those were approved in #1254 (I promise not to touch them).

@speller26 speller26 requested a review from sesmart June 18, 2026 10:57

@sesmart sesmart left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a small tweak in the description. Otherwise looks good!

Comment on lines +196 to +197
Each block is a contiguous run of executables that share the same
``(circuit, observable list/Sum Hamiltonian, single parameter assignment)`` and can thus be

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
Each block is a contiguous run of executables that share the same
``(circuit, observable list/Sum Hamiltonian, single parameter assignment)`` and can thus be
Each block is a contiguous run of executables generated from the same
``(circuit, observable list/Sum Hamiltonian, single parameter assignment)`` and can thus be

@speller26 speller26 merged commit 2916f20 into main Jun 19, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants