About ketch
ketch is a quantum circuit explorer. Build a circuit in your browser and step through it gate by gate to see exactly what each gate does to the state. There’s nothing to install, and you don’t need an account.
Why ketch? A ket, written |ψ⟩, is how physicists write a quantum state. The logo writes the name as one, ending in a “step forward” triangle. (A ketch is also a two-masted sailing boat.)
What it does
- Build circuits by dragging gates onto up to 10 qubits. There are the standard gates, rotations, controls, QFT and Grover blocks, and you can define your own.
- See the exact state after every step, written in Dirac notation, with a note on what happened and which qubits are entangled.
- Follow measurements as they happen mid-circuit. Each possible result becomes its own branch, and later gates can depend on it.
- Compare with Qiskit. The equivalent Python appears beside your circuit, using the same qubit order.
Get started in five minutes
- Step through a circuit. Open ketch and choose Bell state from the Circuit menu. Press Next, or use the ← → keys, to apply one column of gates at a time.
- Read the state. After step 2 the step viewer shows (|00⟩ + |11⟩)/√2 and marks both qubits as entangled. Click a ket in the input line to see which output kets it feeds into.
- Look inside a gate. Click any gate in the circuit to see its matrix.
- Change the circuit. Drag a gate from the palette onto a wire. Editing a library circuit makes your own copy under My circuits, so the original stays as it was. To delete a gate, drag it off the circuit, or select it and press Backspace.
- Run it. Measure 1024 times samples the state you’re looking at. Run 1024 shots, in the Qiskit panel, runs the whole circuit and shows the counts Qiskit would report.
Then try the other circuits in the library. Quantum teleportation shows measurement and classical corrections step by step, and Grover search and Phase estimation of T show two well-known algorithms at a small size.
Keeping your work
Your circuits are backed up in your browser as you work, so a reload won’t lose them. To keep them elsewhere, sign in to Google Drive and use Save as… to save all your circuits as a named suite. ketch can only see the files it creates, not the rest of your Drive.
On a phone
Swipe the row of gates sideways to see more of them, and drag a gate downwards to pick it up. Prev and Next stay at the bottom of the screen.