Repository navigation
Conversation
…ate time T (#613) `PiccoloOptions(timesteps_all_equal = true)` forces a uniform mesh but leaves one free duration scale (Piccolo.jl#317, DirectTrajOpt.jl#145), so the vetted single-qubit template solved uniform-free-duration, not the fixed T the interview promises. Replace it with `Δt_bounds = (Δt_nominal, Δt_nominal)`, `Δt_nominal = T / (N - 1)` (the construction grid's spacing). - vetted_solver.test.ts: pin the construction (fast, CI) - slow/pulse_designer_fixed_T.test.ts: run the real template on a tiny grid and assert the solved duration equals T (gated on AMICO_TEST_JULIA_PROJECT) - SCORE.md facet map: `time_mode: fixed` row; goldens + integrity hash regenerated Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
jacktrnr
marked this pull request as ready for review
November 23, 2026 22:10
This was referenced Nov 23, 2026
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.
Closes #613
Problem
The vetted pulse-designer template (
scores/pulse-designer/templates/solve.jl) built its problem withPiccoloOptions(timesteps_all_equal = true), which the comments and interview treat as "fixed gate time T." In Piccolo 2.2 / DirectTrajOpt 0.11 that option forces a uniform mesh but leaves the duration free (Piccolo.jl#317, DirectTrajOpt.jl#145). The solves were really uniform-mesh, free-duration ones. Measured onmain's template (T = 10, N = 11, 15 iters): the solved duration came back as 10.633 ns in one run and 10.284 ns in another.Change
Δt_nominal = T / (N - 1),Δt_bounds = (Δt_nominal, Δt_nominal). This is the same idiom Piccolo 2.2's own tests use for a fixed duration. MadNLP'sfixed_variable_treatment = MadNLP.RelaxBoundwas already on the default arm, so the fixed (lb == ub) Δt variables are handled.SCORE.mdfacet map: atime_mode: fixedrow that names the pinned-Δt idiom and warns thattimesteps_all_equalis not fixed T. Compiled-score goldens regenerated (GEN_GOLDEN=1).packs/quantum-control/corrector/integrity.toml: sha256 of the template refreshed.timesteps_all_equal = true(templates/solve_template.jl,solve_template_hp.jl,solve_rydberg_cz.jl,scores/pasqal-mis/templates/solve.jl, the exemplars and pasqal demos,skeleton_free.jl) are not changed here and have the same semantics. They need a follow-up if they also mean fixed T.Tests
test/scores/vetted_solver.test.tsadds a pin that the template setsΔt_bounds = (Δt_nominal, Δt_nominal)withΔt_nominal = T / (N - 1)and notimesteps_all_equal = true. It failed before the change and passes after.test/scores/: 342/342 pass.pnpm --filter amicode test: 5814 passed. The 2 SSE chunk-timing perf tests failed only while Julia solves were loading the machine, and they pass in isolation (84/84).test/slow/pulse_designer_fixed_T.test.tsruns the real template (N = 11, max_iter = 15) and asserts thatget_duration(pulse.jld2 traj)equals T within 1e-6·T. It was run against a Piccolo 2.2.0 / DTO 0.11.0 env: RED onmain's template (off by 0.284 ns) and GREEN on this branch (about 60 s).test/setup_hermetic_env.tsdeletes everyAMICO_*env var, soAMICO_TEST_JULIA_PROJECTnever reaches the slow suites.template.test.tsandverify_harness.test.tssilently skip, and so does this new test. I ran it with a throwaway config that omits that setup file. The repo's shippedpackages/extension/julia/Manifest.tomland~/.amico/juliaare also still on Piccolo 2.1 / DTO 0.10, which the template's own version probe refuses. Both look worth their own issues.Re-vet (AC 2)
Six family gates at the template's default FILL-IN (T = 10, N = 50, max_iter = 60, SOLVER = :default/MadNLP, 3-level transmon), Piccolo 2.2.0 / DTO 0.11.0. One unseeded run per gate, 3 in parallel:
All six stay above the vetted floor (F > 0.999), and the duration is pinned at T.
Still needs re-vetting by a human before release: the issue asks for a re-vet against the changed landscape. The numbers above are one unseeded run each, on a local env I provisioned, not through
amico runon the provisioned fleet env. S was not run (it is not in the original six). Before shipping, please run the canonical vet: seeded or multi-seed, throughamico run, on the 2.2 env, and the Altissimo/Ipopt arms if those are part of the vet. Then confirm no regression.Release note (AC 3)
(The repo has no written compatibility policy that I could find. This text is meant for
docs/releases/0.4.1.mdwhen the release notes are put together.)🤖 Generated with Claude Code