Chapter 3, Math for Qubits and Quantum Gates
- A.
represents a qubit because
.
- Here is the result:
- Here is the Qiskit code:
qc = QuantumCircuit(1) qc.h(0) qc.z(0)
- According to Figure 3.25,
. So, we have .
- Here is the matrix calculation:
- Here’s the Hadamard gate acting on |+⟩:
B. doesn’t represent a qubit because
.
C. doesn’t represent a qubit because it has three entries, not two.


Here’s the gate acting on |+⟩:
