Crossover mission · Silicon Lab × Qubit Lab
Classical and quantum gates
A logic gate is a rule from inputs to outputs. Some rules can be run backwards: from the output you can tell what went in. NOT is like that. AND is not: three different inputs give 0.
Quantum gates are matrices that keep the total probability at 1, and every one of them can be undone. Apply a gate twice, or apply its inverse, and the state comes back.
Try each gate twice in the workbench, then sort the gates into the ones you can always undo and the ones you cannot.
Best after Silicon Lab Level 2, Qubit Lab Level 3.
Silicon Lab · truth table
| In | Out |
|---|---|
| 0 0 | 0 |
| 0 1 | 0 |
| 1 0 | 0 |
| 1 1 | 1 |
Different inputs give the same output: from the output alone you cannot tell what went in.
Qubit Lab · apply twice to |0⟩
Once: P(0) = 0.50, P(1) = 0.50
Twice: P(0) = 1.00, P(1) = 0.00
Applied twice, H gives back |0⟩: it is its own inverse.
Both · CNOT
| a b | a, a ⊕ b |
|---|---|
| 0 0 | 0 0 |
| 0 1 | 0 1 |
| 1 0 | 1 1 |
| 1 1 | 1 0 |
CNOT computes XOR but keeps a, so all four outputs differ.