Quantum Computing, Quantum Computer, Qiskit, Quantum Physics, Python.
gate, that is, it needs a number ϕ to tell it what to do exactly. The P gate performs a rotation of ϕ around the Z axis direction. It has the matrix form: where ϕ is a real number. Let’s see this in action: qc = QuantumCircuit(1) qc.p(pi/4,0) qc.draw('mpl') # Let's see the result