|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 gamma = Math.PI / 8;
const beta  = Math.PI / 8;
const c = circuit(3);

c.h(0); c.h(1); c.h(2);

// edge (0, 1)
c.cx(0, 1); c.rz(-2 * gamma, 1); c.cx(0, 1);
// edge (1, 2)
c.cx(1, 2); c.rz(-2 * gamma, 2); c.cx(1, 2);
// edge (0, 2)
c.cx(0, 2); c.rz(-2 * gamma, 2); c.cx(0, 2);

c.rx(2 * beta, 0);
c.rx(2 * beta, 1);
c.rx(2 * beta, 2);

c.measure();
return c;

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