Qiskit, Quantum Computing, Python, Quantum Gate.
by ϕ radians. The matrix for this gate is given by Since the states |0⟩ and |1⟩ lie along the z-axis, they will not be affected by the gate. Try initializing the state vector to |+⟩ and passing it to the Rz-gate as follows: qc.rz(pi/4,0) # First argument is ϕ and second one is the qubit no. You