1
$\begingroup$

Given this code fragment, what is the probability that the measurement would result in 1?

qc = QuantumCircuit(1)
qc.rz(3 * math.pi/4, 0)

A] 0

B] 0.14645

C] 0.85355

D] 1

With calculating using the absolute value of -isin(theta/2) I got the answer as B but the correct answer is A can someone pls help me solve this question?

$\endgroup$

1 Answer 1

4
$\begingroup$

Qubits are initially in the ∣0⟩ state. The Rz gate, which is a rotation around the z-axis, only changes the phase of the qubit states and not the probabilities of measuring 0 or 1 in the computational basis.

$\endgroup$
1
  • $\begingroup$ Thank you so much for the help $\endgroup$ Commented May 15 at 13:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.