|q⟩ Bad Qubits

← Question Bank

Multiple choice
This circuit prepares qubit 0 in some state. What expectation value ⟨X⟩ does it have along the Bloch X-axis?
⚛ The apparatus
const c = circuit(3);
c.h(0);
c.cp(Math.PI / 2, 0, 1);
c.cp(Math.PI / 4, 0, 2);
c.h(1);
c.cp(Math.PI / 2, 1, 2);
c.h(2);
c.swap(0, 2);
return c;

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