← Atlas

Basic circuits · Superposition state

Hadamard-basis states |+⟩ and |−⟩

The Hadamard-basis (X-basis) states |+⟩ and |−⟩: the eigenstates of the Pauli-X operator, produced from |0⟩/|1⟩ by a single Hadamard gate.

Exact & formalUpdated

View frozen graph

q[0] (|+⟩)q[1] (|−⟩)Step 1 of 3 · H · on q[0] (|+⟩)HStep 2 of 3 · X · on q[1] (|−⟩)XStep 3 of 3 · H · on q[1] (|−⟩)H

3 steps across 2 wires. Hover a step, or press play to go through them in order.

Expected outcomes

  • q[0] (|+⟩) Z-basis outcome50%
  • q[1] (|−⟩) Z-basis outcome50%
  • Steps3
  • Wires2
  • Qubits1
  • Depth1 gate (H, or X+H)
  • EigenvalueX = ±1
  • Papers1
Native
plus_minus_states.py
import numpy as np
from qiskit import QuantumCircuit
from qiskit.quantum_info import Statevector, Operator

def plus_state() -> QuantumCircuit:
    qc = QuantumCircuit(1)
    qc.h(0)
    return qc

def minus_state() -> QuantumCircuit:
    qc = QuantumCircuit(1)
    qc.x(0)
    qc.h(0)
    return qc

X = Operator.from_label("X").data
plus = Statevector.from_instruction(plus_state())
minus = Statevector.from_instruction(minus_state())

print("|+> =", plus.data)   # [0.7071, 0.7071]
print("|-> =", minus.data)  # [0.7071, -0.7071]
print("X|+> = +|+>:", np.allclose(X @ plus.data, plus.data))
print("X|-> = -|->:", np.allclose(X @ minus.data, -minus.data))

FINAL_CIRCUIT = plus_state()

References

Exact & formal
  • Direct mathematics
  • Verified by construction
  • Textbook / standard citation
Method
The prepared amplitudes (1/√2, ±1/√2) were compared exactly against the |+⟩, |−⟩ definitions, and each state was checked to be an exact eigenstate of X (eigenvalue +1 for |+⟩, −1 for |−⟩) by direct matrix multiplication.
Result
Pass · H|0⟩ and X;H|0⟩ reproduce |+⟩ and |−⟩ exactly, and X|+⟩=|+⟩, X|−⟩=−|−⟩ hold with no residual off-axis component.
Quantum Computation and Quantum Information: 10th Anniversary Edition ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
CC BY 4.0-compatible reference metadata
hadamard basisx-basismutually unbiased basesphase kickback

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.