Piccolo.jl
A harmonious quantum control and calibration toolkit
1using Piccolo
2using Random
3# Define system
4H_drift = PAULIS[:Z]
5H_drives = [PAULIS[:X], PAULIS[:Y]]
6sys = QuantumSystem(H_drift, H_drives, [1.0, 1.0])
7# Create trajectory
8T, N = 10.0, 100
9times = collect(range(0, T, length=N))
10pulse = ZeroOrderPulse(0.1 * randn(2, N), times)
11qtraj = UnitaryTrajectory(sys, pulse, GATES[:X])
12# Solve
13qcp = SmoothPulseProblem(qtraj, N; Q=100.0, R=1e-2)
14solve!(qcp, max_iter=100)1import pypiccolo
2import numpy as np
3# Define system
4H_drift = PAULIS['Z']
5H_drives = [PAULIS['X'], PAULIS['Y']]
6sys = QuantumSystem(H_drift, H_drives, [1.0, 1.0])
7# Create trajectory
8T, N = 10.0, 100
9times = np.linspace(0, T, N)
10pulse = ZeroOrderPulse(0.1 * np.random.randn(2, N), times)
11qtraj = UnitaryTrajectory(sys, pulse, GATES['X'])
12# Solve
13qcp = SmoothPulseProblem(qtraj, N, Q=100.0, R=1e-2)
14solve(qcp, max_iter=100)Optimal Quantum Control
Piccolo treats full trajectory as decision variables, enforces dynamics as constraints, handles state/control constraints natively, leverages 30+ years of robotics & aerospace trajectory optimization maturity. Model quantum systems, define control problems, and optimize pulses — all in one package.
Piccolo Packages
‘Piccolo.jl is a meta-package for quantum optimal control using the Pade Integrator Collocation (Piccolo) method. This package reexports the following packages
99.9%+ gate fidelity via direct collocation
Piccolo's direct collocation framework achieved gate fidelities exceeding 99.9% on transmon qubit models — outperforming GRAPE with faster convergence and smooth, hardware-realizable pulses.
Cross-modality control without rebuilding your stack
With built-in hardware templates and a composable optimization architecture, Piccolo enables researchers to optimize control problems across qubit modalities. Minimum-time optimization and leakage suppression work out of the box.
Why Piccolo?
Precision Inspired by Robotics and Aerospace
Piccolo uses proven algorithms from robotics and aerospace fields that have mastered the design of precision control under uncertainty. These methods bring stability, adaptability, and rigor to quantum hardware control.
Real-time Software Design
Design control sequences, calibrate in situ, and compensate for drift and noise as it happens. Piccolo is built for live systems, not offline theory.