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

PartStatusSince
Gaussian and Fock simulation, boson sampling, gradients, noise modelsReleased, benchmarked, reproduced1.0–1.2, 1–5 November 2026
Permanents and hafnians on an NVIDIA GPUReleased, tested1.1, 5 November
The symbolic engine, compiled programsReleased, benchmarked, reproduced1.3, 7 November
Reconstruction over finite fields, Feynman-integral reductionReleased, benchmarked, reproduced1.4, 8 November
Executors for one machine and for one owner's machinesReleased, tested1.0 (sampling), 1.4 (reconstruction)
The task layer: plain-data tasks for any application, provenance recordsTested, on the main branch, not in a release13 November
Mathematical physics, quantum optics, QFT and QCDTested and reproduced, on the main branch14–18 November
Lean 4 certificates of exact resultsTested and reproduced, on the main branch25 November
The executor for federation peersA prototype in GenHub2; in development in PQCF17 November
Independent review of the physics; a release with a DOINot 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.

AreaCompared with
Photonic simulationThe Walrus, Piquasso, Perceval, DeepQuantum, Strawberry Fields
Symbolic computationFORM 5, every week
Feynman-integral reductionFIRE 6.5.2 and Forcer
Quantum opticsQuTiP, and closed-form solutions
QFT and QCDFORM's diagram generator, mpmath, CRunDec, LoopTools
Holographic QCDthe 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 .