CLS-8340: cap maxwell_2d_simulation width at 25 for the new synthesis flow#1618
Open
din-carmon wants to merge 1 commit into
Open
CLS-8340: cap maxwell_2d_simulation width at 25 for the new synthesis flow#1618din-carmon wants to merge 1 commit into
din-carmon wants to merge 1 commit into
Conversation
… flow The new synthesis flow does not reuse the block-encoding ancillas the way the legacy flow does, so synthesizing maxwell_2d_simulation with an effectively unbounded max_width (1000) produced a ~411-qubit program and failed the notebook size check (expected_width=25). Constraining max_width to 25 makes the new flow reuse qubits and fit within the budget (resulting width 25), while remaining satisfiable for the legacy flow (which is already ~20). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
maxwell_2d_simulationsynthesizes withPreferences(symbolic_loops=True, transpilation_option=NONE)andConstraints(max_width=1000). Under the new synthesis flow, the block-encoding ancillas (LCU /within_apply/ GQSP) are not reused the way the legacy flow reuses them, so the program comes out at ~411 qubits and fails the notebook test'svalidate_quantum_program_size(expected_width=25).Change
Cap
max_widthat25inrun_simulation. This forces the new flow to reuse qubits and fit within budget (resulting width 25), and remains satisfiable for the legacy flow (already ~20). The algorithm and physics result are unchanged - only the qubit-allocation budget.Validation
Synthesized the real model in-process through the new flow (
RunNewSynthesis.ALWAYS):data.width= 25 (was 411)Note: this depends on the QASM-version-inference fix in Cadmium (CLS-8340) for the export path; the width cap addresses the separate size check.
🤖 Generated with Claude Code