Quantum Computing Hardware

Which correctly describes what a single-qubit X gate does?

  1. AIt swaps |0⟩ and |1⟩, turning |0⟩ into |1⟩ and |1⟩ into |0⟩ (the equivalent of a classical NOT)
  2. BIt turns |0⟩ into a superposition in which the amplitudes of |0⟩ and |1⟩ have equal magnitude
  3. CIt flips only the sign of the amplitude of |1⟩, without changing the measurement probabilities
Show answer and explanation

Answer: A. It swaps |0⟩ and |1⟩, turning |0⟩ into |1⟩ and |1⟩ into |0⟩ (the equivalent of a classical NOT)

The X gate turns |0⟩ into |1⟩ and |1⟩ into |0⟩, the equivalent of NOT in classical logic circuits. Applied to a superposition α|0⟩ + β|1⟩, it swaps the amplitudes to give β|0⟩ + α|1⟩. On the Bloch sphere it is a 180° rotation about the x axis, and in superconducting qubits and similar platforms it is implemented by a microwave pulse tuned to the qubit's resonance frequency (a π pulse). The gate that turns |0⟩ into an equal superposition is the Hadamard (H) gate, and the one that flips the sign of |1⟩ is the Z gate.

  • A. Correct. It is a 180° rotation about the x axis of the Bloch sphere.
  • B. This is what the Hadamard (H) gate does.
  • C. This is what the Z gate does.
Practice this topic Back to topic

Books on Quantum Computing Hardware Ad

As an Amazon Associate I earn from qualifying purchases.

More Quantum Computing Hardware questions

  1. A qubit in the state |0⟩ has a Hadamard (H) gate applied once and is then measured. What is the probability of getting 1?
  2. Starting from the two-qubit state |00⟩ (the left digit is the first qubit), an H gate is applied to the first qubit, followed by a CNOT gate with the first qubit as control and the second as target. What is the resulting state?
  3. Gates H, Z and H are applied in that order to a qubit in |0⟩, which is then measured. What is the probability of getting 1?
  4. Why can't quantum error correction directly use the classical approach of making three copies of the data and taking a majority vote?
  5. Which correctly describes the energy relaxation time T1 of a qubit?