Version 0.3, free and open source

The quantum Fourier transform, in log depth

OQFT builds the optimistic quantum Fourier transform: a circuit that's right on almost every input, uses no spare qubits, and has a depth that barely grows with the register. Generate it as OpenQASM 3, count its gates, and check it on a simulator.

198

Depth of the optimistic QFT on 2,048 qubits. The textbook circuit needs 4,096

20x

Fewer gates at 2,048 qubits: about 104,000 instead of 2.1 million

0 spare

Extra qubits needed. The circuit runs on the register itself

Apache 2.0

License for all of the code

Counts from oqft stats at epsilon 0.01, where every gate counts as one layer. The recorded results are on GitHub.

Notes and releases

Questions or ideas?

If you work on quantum algorithms, compilers or post-quantum planning and OQFT nearly does what you need, write in.

Contact