qdk_chemistry.data.enums.fermion_mode_order module
Fermion mode ordering convention for fermion-to-qubit mappings.
This module defines the FermionModeOrder enum, which tracks how
fermionic modes (e.g. spin-orbitals) are ordered before applying a qubit
encoding:
blocked: all alpha modes first, then all beta
[α₀, α₁, …, αₙ₋₁, β₀, β₁, …, βₙ₋₁]interleaved: alternating alpha/beta
[α₀, β₀, α₁, β₁, …, αₙ₋₁, βₙ₋₁]
- class qdk_chemistry.data.enums.fermion_mode_order.FermionModeOrder(*values)[source]
Bases:
StrEnumFermion mode ordering convention used when mapping fermions to qubits.
- BLOCKED = 'blocked'
All alpha modes first, then all beta –
[α₀, α₁, …, β₀, β₁, …].
- INTERLEAVED = 'interleaved'
Alternating alpha and beta –
[α₀, β₀, α₁, β₁, …].