|q⟩ Bad Qubits

← Question Bank

Multiple choice
After running this circuit, what is the expectation value ⟨Z⟩ of qubit 0 (its Bloch Z-component)?
⚛ The apparatus
const theta = Math.PI / 3;
const c = circuit(2);
c.x(1);            // |01>: one excitation
c.cx(1, 0);
// controlled-RY(theta), control 0, target 1
c.ry(theta / 2, 1);
c.cx(0, 1);
c.ry(-theta / 2, 1);
c.cx(0, 1);
c.cx(1, 0);
return c;

Commit your prediction for ⟨Z⟩ of qubit 0 — then run it.