Repository navigation
Releases
Releases · FluffyHorizon1/qpuforge
qpuforge 0.3.0
[0.3.0] - 2026-11-27
First tagged release. Adds pulse-level CZ calibration, a leakage-modelled QEC frame simulator, layout synthesis with
GDSII output, and the Alpha-1 v1.1 (AF-17) and Beta-1 (BF-49) designs. See the README "What's new in v0.3" table.
Added
pulse.hpp: a qubit–coupler–qubit charge Hamiltonian, piecewise-exact CZ propagation, and 3-knob calibration. Also
flux-noise and spectator-crossing error terms, plus per-pair calibration of a whole chip with an on-disk cache.qec.hpp: a per-qubit leakage flag next to the Pauli frame. It models CZ leakage injection, transport, seepage,
leakage-removing reset and data-qubit leakage removal (DQLR).layout.hpp,gds.hpp: method-of-moments capacitance extraction, parametric cells, Gauss–Newton cell synthesis,
chip assembly, DRC and a GDSII writer.core.hpp: Householder + implicit-QL tridiagonal eigensolver (sym_eigen_tri).- Circuits: mid-circuit
reset(OpenQASMreset,Circuit::reset,Op::RESET) and dynamic-circuit detection. - CLI: the
czandgdssub-commands, plusqec --leakage-removaland--version.
API changes
Op::RESETis a new enumerator, appended afterOp::X. All existingOpvalues keep their 0.2 numbering. A
pre-release build of 0.3 putRESETbetweenMEASUREandBARRIER, which renumberedBARRIER,RZ,SXandX.
If you serialisedOpas an integer with that pre-release, re-generate the data. Code thatswitches overOp
must handleRESET.compiler.hpp:lower(const Circuit&, meas&, bool& dynamic)is new. It reports whether the circuit has
mid-circuit measurement feed-forward or resets. The 0.2 signaturelower(const Circuit&, meas&)is still available
as an overload that discards the flag.NoiseModel::only()accepts"reset"and"leakage".ChipDesigngainscoupler(CouplerElement) andleakage(LeakageSpec). Old chip JSON files still load, with
physical couplers off.- Behaviour change:
LeakageSpec::modeldefaults totrue. As a result, the Pauli-frame QEC model applies
leak_1q= 1e-6 per single-qubit gate, plus seepage, to old chips too. To get 0.2 behaviour, set
"leakage": {"model": false}.
Changed (release clean-up)
- CZ model: the default coupler truncation is now
Lc = 4(was 3); qubit/coupler/qubit levels are 4/4/4.- Lc = 3 was not converged: it left a 4e-3 rad conditional-phase error. At Lc = 4, one more level changes the phase
by 6e-5 rad. - Per-pair calibration is about 1.6× slower.
- All CZ calibrations and review outputs were regenerated. Headline changes are within Monte Carlo error. One
exception: Alpha-1 v1.1 pair Q8–Q11 now leaks 2.3e-4 per CZ (was 1.3e-4), above the 2e-4 gate limit; the mean is
5.7e-5.
- Lc = 3 was not converged: it left a 4e-3 rad conditional-phase error. At Lc = 4, one more level changes the phase
- CZ cache: the cache is versioned (
CZModel::kVersion = 2).- Keys include the time step, optimiser budget, level truncations and charge cutoffs.
- The file is wrapped as
{schema, model_version, entries}; unversioned or other-version files are ignored with a
warning and re-simulated. results/cz_cache.jsonwas regenerated by the review runs.
- Wording: "leakage-aware QEC" is now "leakage-modelled QEC". Leakage is simulated, but the decoder does not use it.
- DRC: new minimum width/space check on the merged etch layer (4 µm, projection metric).
- The AF-17 and BF-49 first-cut layouts do not pass it. "DRC clean" claims were reworded.
- The Beta exit criterion now covers placement and island spacing only.
- QEC:
summarize()warns when fault mechanisms flipping more than two detectors are missing from the matching
graph (newhyperedge_p), and when faults flip the logical without any detector. - Specs: BETA-1 caveats added: no leakage herald in the decoder; Λ is a matched-model best case;
residual_ctrl_erris an assumed allowance. - Review programs: they take
--out,--cacheand--smoke, and write a provenance block (see
results/PROVENANCE.md). Review outputs are generated by code only; there are no hand-written additions. - Tests: 186 checks (was 96), split into labelled CTest entries, plus two review smoke tests.
Fixed
gds: record lengths over 65,530 data bytes (polygons with more than 8,190 vertices) now throw instead of silently
wrapping. Coordinates are range-checked. BGNLIB/BGNSTR carry the real date (orSOURCE_DATE_EPOCH).- clang
-Wc++20-extensions(structured binding captured in a lambda) incalibrate_cz_pair. -Wunknown-pragmasflood in builds without OpenMP.- The test suite no longer writes a fixed
/tmp/qpuforge_test.gds.
Known issues
- Alpha-1 v1.1 pair Q8–Q11 leaks 2.3e-4 per CZ, above the 2e-4 gate limit.
- The AF-17 and BF-49 first-cut layouts fail the merged-etch width/space DRC (4 µm / 4 µm, projection metric):
AF-17 has 34 width + 202 space violations, and BF-49 has 98 width + 602 space violations. The masks are not
fabrication-ready.