The Jordan–Wigner Transform
Second quantization gave us a Hamiltonian written in creation and annihilation operators. To run it on a quantum computer we need those fermionic operators expressed as Pauli operators on qubits. The Jordan–Wigner (JW) transform is the original and most direct fermion-to-qubit mapping.
The occupation-to-qubit dictionary
JW makes the simplest possible identification: spin-orbital is represented by qubit , and the occupation number becomes the qubit's computational-basis label,
An empty orbital is , an occupied orbital is . The number operator becomes , which reads off the qubit: it returns for and for .
Encoding the fermionic phase
The hard part is the antisymmetry sign , where counts occupied orbitals before . A bare qubit flip on site cannot know about the occupation of qubits . JW supplies that knowledge with a parity string of operators:
The local operator raises or lowers qubit , while the leading multiplies in exactly the phase demanded by the anticommutation relations. You can verify that with these definitions holds.
A worked single term
Consider the one-body hopping term on two qubits. Substituting the JW definitions and simplifying (the strings on the two adjacent sites combine) gives the clean two-qubit Pauli form
This is the standard "XY" hopping interaction. Every term of a molecular Hamiltonian reduces, after JW, to a weighted sum of Pauli strings like this one — which is precisely the input VQE needs.
Preparing occupation states is easy
Because occupation maps directly to qubit values, preparing a specific occupation string costs only gates: flip qubit to for each occupied orbital . The parity-string signs do not change which basis state results when you build it from the vacuum in increasing-index order; they only matter when operators act within the Hamiltonian. This is exactly how the Hartree–Fock reference state (lesson 6) is prepared.
Try it
On 4 spin-orbitals (qubits 0–3), prepare the occupation state with orbitals 0 and 2 filled, i.e. apply to the vacuum. Under Jordan–Wigner this is just the computational basis state with qubits 0 and 2 set to . The grader checks the full statevector.
After running, the statevector panel should show a single non-zero amplitude at the basis state
1010-pattern (qubits 0 and 2 high), confirming the JW occupation encoding.
Sign in on the full site to ask questions and join the discussion.