Quantum Computing, Machine Learning, M1 Macbook Air, Cancer, AI.
the qubit is in state |0>, the H gate will transform it to the state (|0> + |1>)/√2. If the qubit is in state |1>, the H gate will transform it to the state (|0> — |1>)/√2, (2) P gate (phase gate) is parametrized, that is, it needs a number (ϕ) to tell it exactly what to do. The P-gate performs a