docs: add saving and loading pulses guide#81
Open
aarontrowbridge wants to merge 1 commit intomainfrom
Open
Conversation
3e0d449 to
94bba68
Compare
94bba68 to
7555d9c
Compare
…kflow Add a new how-to guide (docs/literate/guides/saving_loading.jl) covering saving pulses with JLD2, loading for warm-starting, saving trajectories, and organizing pulse files across a project. Thread save/load encouragement throughout existing docs: - Quickstart: new "Saving Your Results" section - First Gate tutorial: new "Step 8: Save the Optimized Pulse" - Concepts overview: extend workflow with save step - Trajectories concept: add "Extracting and Saving Pulses" section - Pulses concept: add "Save Optimized Pulses" best practice - Guides index: list new guide and add quick links Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jack-champagne
requested changes
Mar 2, 2026
Member
jack-champagne
left a comment
There was a problem hiding this comment.
I love this, but let's implement this right by instead overriding the jld2.save function similarly to how named trajectories does it so that the normal save and load semantics of jld2 can be applied to pulses - its just going to wrap what you wrote anyways:
jldsave("x_gate_pulse.jld2"; pulse = optimized_pulse, fidelity = fidelity(qcp)) or something like that
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.
Summary
Test plan
julia --project=docs docs/make.jlbuilds without errors🤖 Generated with Claude Code