Representation-Scheduled Photonic Simulation
Photonic circuits are cheap or expensive depending on the state you keep, not on the drawing of the chip. A linear interferometer on Gaussian light is a real symplectic matrix. The same drawing with a Kerr gate, or with a request for photon-number probabilities, needs a truncated Fock space. A one-photon dual-rail qubit is also a small gate-model circuit. This note is the rule that picks which of those three to run, and the 2026 map of where the circuit can go after that choice.
One netlist
A circuit is a list of modes and optical gates: phase, beamsplitter, squeeze, displace, Kerr. Nothing in the netlist names a backend. The scheduler looks at the gates.
Every gate is phase, beamsplitter, squeeze, or displace: stay in a Gaussian covariance. Vacuum is the identity in the hbar = 2 convention, quadratures interleaved (q, p) per mode. Each gate updates the mean and the covariance in place. That update is exact.Any other gate, including Kerr: drop into truncated Fock space. Linear optics conserves photon number, so a cutoff above the input photon number is exact for the linear part. Kerr is approximate in the cutoff. This version of the Fock lowering handles two modes.The one-photon sector of two modes is a qubit. Logical 0 is one photon in the first mode. Logical 1 is one photon in the second mode. A balanced Mach-Zehnder is a beamsplitter, a phase on one arm, and the inverse beamsplitter. Its port probabilities match the qubit circuit H, Rz(phi), H. A gate-model backend can run that image. It cannot run the squeezed or Kerr circuit.
The Gaussian step has two implementations of the same math. NumPy is the reference. A small Rust library applies the same symplectic update through a C ABI when it has been built. If the library is absent, NumPy runs. Tests pin both to the same numbers.
The same idea that made Rust programs easier to optimize applies here. The representation is known before the run, so the cheap path is a dense covariance of size 2N, and the expensive path is entered only when a gate forces it.
What this is not
An FFT of a vector is not an optical FFT. A closed formula for Grover iterations is not a search of a database. This simulator does not claim a quantum speedup. It claims that the classical machine does the exact cheap case exactly, and that the expensive case is only entered when a gate forces it.
Gaussian boson sampling and fault-tolerant photonic error correction are larger problems than this netlist. The scheduler is the piece you can run on a CPU today while those machines are still being built.
Checked on a CPU
Hong-Ou-Mandel: a 50/50 beamsplitter on a photon in each input puts equal probability on both photons leaving together in either port, and zero probability on one photon in each port.
Mach-Zehnder: zero extra phase returns the photon to the input port. A phase of pi sends it to the other port. Fock probabilities and the local one-qubit statevector agree.
Symplectic form: phase, beamsplitter, and squeeze preserve S times Omega times S transpose equals Omega.
Squeeze: one quadrature variance drops, the other grows, and their product stays 1.
The lab code is in the sim directory. Run the tests with NumPy. Build the Rust crate if you want the second kernel.
Faster than the Rust kernel
On this CPU the Rust kernel is the fast Gaussian update. NumPy does the same math and takes longer. Another rewrite of that update on the CPU does not change the scaling. The covariance is a dense matrix of size 2N.
A faster row has to be a different device, and it has to be timed on that device.
GPU. Batch many independent circuits into one matrix multiply. This machine has no GPU. A single small chain can lose to Rust once the copy onto the card is counted. The comparison is milliseconds per circuit for a stated batch size.NPU. The same multiply on a neural accelerator. None is attached. A vendor throughput figure is not a gate time.Photonic hardware. The chip evolves the light. It does not speed up the CPU covariance multiply. The comparison is the wall time of one prepared shot, including compile and queue, against the Rust row for the same netlist. Quandela is the public photonic path in the survey below. A press note is not that measurement.Gate-model QPU. Only the dual-rail image. It does not run the Gaussian state. A larger qubit count is not a faster interferometer.
No millisecond in this lab is a GPU, NPU, or QPU number until a run on that device writes it.
Where a circuit can go (surveyed 2026-10-24)
Prices move and are not listed here. Access is what a public developer can actually call. Qubit counts are vendor- or press-reported.
Photonic
This CPU. Gaussian and small Fock, no account. This is the default.Quandela. Discrete photons. Perceval for local simulation, plus Quandela cloud and the CMC Quantum Computing Sandbox. On 20-22 October 2026 at NVIDIA GTC Berlin they showed a live hybrid loop: their photonic system controller exchanging data with an NVIDIA DGX Spark over NVQLink and CUDA-Q. Lucy is the photonic QPU line tied to EuroHPC work.Xanadu. Continuous-variable photonics. Aurora, published in Nature in January 2025, networked 35 photonic chips over fiber at room temperature. Xanadu Quantum Cloud was retired in January 2026. PennyLane is the software path and also targets other vendors.ORCA Computing. Time-bin photonic processors at room temperature, aimed at hybrid HPC racks. No large public shot API.PsiQuantum. Fusion-based photonic roadmap. No public QPU cloud.
Gate model, for the dual-rail image only
IBM Quantum. Heron-class devices, reported around 156 qubits. Qiskit. An Open Plan exists for small circuits.Amazon Braket. A broker. The local simulator and SV1 are for free checks. Hardware partners include IonQ, Rigetti, IQM, QuEra, and OQC. No native photonic QPU.IonQ. Trapped ions. Forte is reported at 36 qubits. Direct cloud plus AWS, Azure, and GCP. Tempo was on the 2026 roadmap.Quantinuum. Trapped ions. H2 is 56 qubits. Helios is offered through the Oracle Cloud Infrastructure Quantum AI Compute beta that opened in October 2026, and through Azure on a subscription.Rigetti. Superconducting. Cepheus-class chips reported around 100 qubits. QCS, Braket, and Azure. Quil.IQM Resonance and Oxford Quantum Circuits. Superconducting, also listed on Braket.Pasqal. Neutral atoms. Orion Gamma is reported around 140 qubits, with Pulser, Pasqal Cloud, Azure, and a CINECA deployment. Analog Rydberg schedules, not a linear-optical netlist.QuEra Aquila. A neutral-atom analog Hamiltonian on Braket. The job is a pulse schedule, not this netlist.AQT. Innsbruck trapped ions, with European HPC access.Quantum Inspire. QuTech. A free emulator plus small Spin-2 and Starmon devices. cQASM.Google Quantum AI. Willow, reported at 105 qubits, with a below-threshold surface-code result. Not a general public shot service.Alice and Bob. Cat qubits on the Felice line. Not a drop-in for this netlist.D-Wave. Quantum annealing. Advantage is not a circuit machine. Only a QUBO belongs there.qBraid. An orchestrator in front of several backends, not a modality of its own.
PennyLane is the practical software layer when a circuit should be rewritten for someone else's device. Braket, Qiskit, and Perceval are probed at runtime and are not required. The local statevector never submits a paid job.
Next
The Fock lowering is two modes. A later cut can add more modes, a permanent-based sampler for Gaussian boson sampling, and a Perceval or PennyLane export of the same netlist. The rule stays the same: pick the representation from the gates, and do not pay for Fock space when a covariance is exact.