ffsim.qiskit.PrepareHartreeFockJW¶
- class ffsim.qiskit.PrepareHartreeFockJW(norb, nelec, label=None)[source]¶
Bases:
GateGate that prepares the Hartree-Fock state (under JWT) from the all zeros state.
This gate assumes the Jordan-Wigner transformation (JWT).
This gate is meant to be applied to the all zeros state. It decomposes simply as a sequence of X gates that prepares the Hartree-Fock electronic configuration.
This gate assumes that qubits are ordered such that the first
norbqubits correspond to the alpha orbitals and the lastnorbqubits correspond to the beta orbitals.Methods
Attributes