Qubit wire H gate Oracle U_f y = 0…0 bar
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Deutsch-Jozsa Circuit in 3D

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.