HartreeFockAnsatz¶
- class HartreeFockAnsatz[source]¶
Bases:
AnsatzHartree-Fock-based ansatz for quantum chemistry.
This ansatz prepares the Hartree-Fock reference state and applies parameterized single and double excitation gates. It’s a simplified alternative to UCCSD, often used as a starting point for VQE calculations.
Methods Summary
build(params, n_qubits, n_layers, **kwargs)Builds the ansatz circuit and returns a list of operations.
n_params_per_layer(n_qubits, **kwargs)len(singles) + len(doubles)fromqp.qchem.excitationsfor the givenn_electrons(required kwarg).Methods Documentation