Skip to content

Enable VariableQids in simulators - #8300

Open
arettig wants to merge 6 commits into
quantumlib:mainfrom
arettig:vqid_sim
Open

Enable VariableQids in simulators#8300
arettig wants to merge 6 commits into
quantumlib:mainfrom
arettig:vqid_sim

Conversation

@arettig

@arettig arettig commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

This adds the add_qubits method to SimulationState objects, which
allows the set of qubits in the simulator state to change at each
step.

The simulator will now find newly resolved qubits from
VariableQids and will add these qubits to the simulation state.

This allows the set of qubits in the simulator state
to change at each step. This allows VariableQid's to be
evaluated during runtime.
@github-actions github-actions Bot added the size: M 50< lines changed <250 label Sep 3, 2026
@codecov

codecov Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.59%. Comparing base (43f6849) to head (e62fec5).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8300   +/-   ##
=======================================
  Coverage   99.59%   99.59%           
=======================================
  Files        1125     1125           
  Lines      103250   103304   +54     
=======================================
+ Hits       102828   102883   +55     
+ Misses        422      421    -1     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@arettig
arettig marked this pull request as ready for review September 3, 2026 21:20
@arettig
arettig requested a review from a team as a code owner September 3, 2026 21:20
@arettig
arettig requested a review from tanujkhattar September 3, 2026 21:20
This allows for adding new substates to `SimulationProductState`s easily.
This is used when adding new qubits mid-simulation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: M 50< lines changed <250

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant