HartreeFock¶
-
class
HartreeFock
(num_orbitals, num_particles, qubit_mapping='parity', two_qubit_reduction=True, sq_list=None)[source]¶ Bases:
qiskit.aqua.components.initial_states.initial_state.InitialState
A Hartree-Fock initial state.
- Parameters
num_orbitals (
int
) – number of spin orbitals, has a min. value of 1.num_particles (
Union
[List
[int
],int
]) – number of particles, if it is a list, the first number is alpha and the second number if beta.qubit_mapping (
str
) – mapping type for qubit operatortwo_qubit_reduction (
bool
) – flag indicating whether or not two qubit is reducedsq_list (
Optional
[List
[int
]]) – position of the single-qubit operators that anticommute with the cliffords
- Raises
ValueError – wrong setting in num_particles and num_orbitals.
ValueError – wrong setting for computed num_qubits and supplied num_qubits.
Methods
Construct the statevector of desired initial state.
Attributes
-
bitstr
¶ Getter of the bit string represented the statevector.