QuantumCollocation.jl uses NamedTrajectories.jl to set up and solve direct collocation problems specific to quantum optimal control, i.e. generating a pulse sequence
Where the dynamics between knot points
QuantumCollocation.jl gives the user the ability to add other constraints and objective functions to this problem and solve it efficiently using Ipopt.jl and MathOptInterface.jl under the hood.
This package is under active development and issues may arise -- please be patient and report any issues you find!
QuantumCollocation.jl is registered! To install:
using Pkg
Pkg.add(QuantumCollocation)
See the example script examples/scripts/single_qubit_gate.jl, which produces the following plot:
Documentation is built using Documenter.jl and uses Literate.jl to generate markdown files from scripts stored in docs/literate. To build the documentation locally, start julia with the docs environment:
julia --project=docs
Then (for ease of development) load the following packages:
using Revise, LiveServer, QuantumCollocation
To live-serve the docs, run
servedocs(literate_dir="docs/literate", skip_dir="docs/src/generated")
Changes made to files in the docs directory should be automatically reflected in the live server. To reflect changes in the source code (e.g. doc strings), since we are using Revise, simply kill the live server running in the REPL (with, e.g., Ctrl-C) and restart it with the above command.
Documentation:
- cross-referencing to library
- notation explanation
- examples
- two-qubit
- cat qubit
- three-qubit
- qubit-cavity
- qubit-cavity-qubit
- contributing guidelines
Functionality:
- custom
QuantumTrajectory
types (repr. of isomorphic states) - better quantum system constructors (e.g. storing composite system info)