Tutorials#
Each tutorial is a Python script you can run, open in Code Studio, or open in Colab. The site runs every one each time it’s built, so the outputs on each page are the code’s own. On each page, Open in Code Studio opens the script in Identity Quantum Computing’s IDE, and Open in Colab opens a notebook made from the same script. You can also download the script and run it where you installed cosmiq:
python 01_detuning_sweep.py
COSMIQ_TUTORIAL_QUICK=1 python 01_detuning_sweep.py # a quick version, in a few seconds
Tutorial |
What it does |
Needs |
|---|---|---|
prepares an ordered state, trains the sweep with exact gradients, estimates the same gradient from shots, and samples the result |
cosmiq |
|
single-qubit gates around an analog block, trained with torch; the gradient from shots by SPSA |
the |
|
an MIS cost from PennyLane observables, an adiabatic sweep trained to minimise it, read with shots |
the |
|
|
cosmiq |
|
a GHZ circuit transpiled to cosmiq-ref-1’s digital profile, checked against Qiskit’s own simulator, run with the profile’s noise; a CZ out of range refused |
the |
|
a repetition-code memory experiment with atom loss as heralded erasures, decoded loss-blind and loss-aware on the same shots, and compared |
the |
|
a training loop as a runtime: checkpoints, a stop and a resume that ends where an uninterrupted run does, then a rehearsal of its virtual QPU jobs on this machine |
cosmiq |