Quantum Computing, Quantum Computer, Simulator, From Scratch.
and returns a function. This function can take any qubit and produce the results. Out of these gates, X and H (or Pauli X and Hadamard) are more interesting ones for now. X gate is also known as quantum NOT gate. So, it takes a qubit and reverses its state. The H or Hadamard gate takes a qubit and