So the main story here is you start with a state and you push it into a gate--actually in quantum mechanics, the way to think of a gate is just Schrödinger equation doing its job for, let's say, a fraction of a second. 