HomeQuantum Physics3D Quantum Circuit: Deutsch-Jozsa Algorithm

Deutsch-Jozsa Circuit in 3D

Watch the real Deutsch-Jozsa circuit run in 3D — qubit wires, H gates and the oracle box carrying a phase-kickback pulse — then see the computed final amplitudes rise as a 3D bar landscape, collapsing to a single spike at |0...0⟩ for a constant function and to zero there for a balanced one.

Quantum Physics3DModerate60 FPS📱 Mobile-adapted⇄ 2D version
3d-quantum-algorithms-overview ↗ Open standalone

This 3D scene renders the actual Deutsch-Jozsa circuit — n qubit wires plus an ancilla, an initial layer of Hadamard gates, a single oracle box, and a final layer of Hadamard gates — with a pulse that visibly travels the wires as the one oracle query is spent. Behind the circuit, a bar landscape rises from the same real amplitude array the 2D version computes: a genuine Walsh-Hadamard transform of the phase-kicked superposition, not a scripted animation, so a constant function you build always spikes the |0…0⟩ bar to full height and a balanced one always leaves it at zero.

⚙ Under the hood

Explore quantum circuits with phase kickback and Walsh-Hadamard transform. Solve hidden Boolean functions in one query vs. classical's 2^(n-1)+1. Adjust qubits, pick function type, and see live stats.

quantum computingDeutsch-Jozsa algorithmThree.jsquantum circuit

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)