Open source · Apache 2.0 · Erlang/OTP and Rust · by Quanterall
PQCF: a scientific engine with distributed execution
PQCF, the Photonic Quantum Computing Framework, has two capabilities that applications use together: a scientific engine, and the execution of an application's work across machines.
It began as a photonic simulator; its scientific engine now reaches into exact symbolic computation, Feynman integrals and mathematical physics. Every part is checked against established tools and published results, and every published result can be reproduced from a fresh clone of the code.
The source on GitHub
The user guide
Reproduce every result
What it is
A scientific engine
- Photonic simulation: Gaussian and Fock-space backends, density matrices with loss, boson sampling and Gaussian boson sampling, gradients, noise models
- Permanents and hafnians, also on an NVIDIA GPU
- Exact symbolic computation, and compiled programs
- Reconstruction over finite fields, with Feynman-integral reduction
- Differential equations and series at arbitrary precision; curvature and tensors for holographic models
- Quantum optics: master equations and exact steady states; QFT and QCD: Feynman diagrams and rules, Dirac traces, one-loop integrals, the running of QCD
Distributed execution
- An application's work as plain-data tasks (
pq_task)
- Run by executors on one node, or across one owner's Erlang nodes
- The same result however the work is spread; a lost node's work retried elsewhere
- A provenance record with every result: task hashes, code checksums, node and execution metadata
- Execution on federation peers: a prototype in GenHub2; native in PQCF, in development
Built on Erlang/OTP
- The top layer is an Erlang/OTP application (
pq)
- The numerical kernels are a Rust library loaded as a NIF, through Rustler
- A JSON service and a Python client
- GenHub2, virus classification for genetic laboratories, is the first application built on PQCF
- Designed to run on the execution infrastructure of FVLLMP, a federation of independently owned nodes
PQCF stands for Photonic Quantum Computing Framework. It is not a post-quantum cryptography library and implements no cryptographic algorithms.
Status
| Part | Status | Since |
| Gaussian and Fock simulation, boson sampling, gradients, noise models | Released, benchmarked, reproduced | 1.0–1.2, 1–5 November 2026 |
| Permanents and hafnians on an NVIDIA GPU | Released, tested | 1.1, 5 November |
| The symbolic engine, compiled programs | Released, benchmarked, reproduced | 1.3, 7 November |
| Reconstruction over finite fields, Feynman-integral reduction | Released, benchmarked, reproduced | 1.4, 8 November |
| Executors for one machine and for one owner's machines | Released, tested | 1.0 (sampling), 1.4 (reconstruction) |
| The task layer: plain-data tasks for any application, provenance records | Tested, on the main branch, not in a release | 13 November |
| Mathematical physics, quantum optics, QFT and QCD | Tested and reproduced, on the main branch | 14–18 November |
| Lean 4 certificates of exact results | Tested and reproduced, on the main branch | 25 November |
| The executor for federation peers | A prototype in GenHub2; in development in PQCF | 17 November |
| Independent review of the physics; a release with a DOI | Not yet | |
The latest release is 1.4.0 (8 November 2026); its interface has been frozen since 1 November, and changes are additive until 2.0. The newer work is on the main branch: each result's reproduction page names the commit it was tested at, so reproduce it there, not from the release. The changelog →
Checked against
Each part of the engine is measured against an established program or a published result, with every answer checked, not only timed; where PQCF is slower or incomplete is published too.
| Area | Compared with |
| Photonic simulation | The Walrus, Piquasso, Perceval, DeepQuantum, Strawberry Fields |
| Symbolic computation | FORM 5, every week |
| Feynman-integral reduction | FIRE 6.5.2 and Forcer |
| Quantum optics | QuTiP, and closed-form solutions |
| QFT and QCD | FORM's diagram generator, mpmath, CRunDec, LoopTools |
| Holographic QCD | the published papers, and independent SciPy solutions |
Every comparison, including where PQCF loses
Results certified by Lean 4
For selected exact results, PQCF generates a Lean 4 statement that a reader can inspect, together with a proof that Lean's kernel checks mechanically. PQCF stays the solver; Lean is the judge. The checking is done by lean-check, from erlang-lean4, on the same Erlang node or another.
First results: the 15 polynomial gcds and factorisations of PQCF's published comparison with FORM, inputs of 572 to 751 terms, all certified, each accepted by Lean's kernel in 27 to 99 seconds from the three approved standard axioms. A certificate covers the result it states, not the code that produced it.
Formal verification: what a certificate proves
Get started
PQCF builds and tests in one Docker image (Erlang/OTP 27 and the pinned Rust toolchain):
git clone https://github.com/quanterall/pqcf.git
cd pqcf
docker build -t pqcf-dev .
- The user guide: a first circuit (Hong–Ou–Mandel), backends, gradients, loss and noise, the symbolic engine, jobs, several nodes, Python, reducing results
- The Python client, through PQCF's JSON service
- Every published result, and how to reproduce it from a fresh clone, at the commit it was tested at
- How to cite PQCF; the security policy
- PQCF's architecture and history, on quanterall.com