Migrating code based on deprecated library qat.dqs
Module qat.fermion
replaces qat.dqs
module. This new module provides a set
of improvement and optimization, nevertheless, existing code based on qat.dqs
must be updated. This section explains how to adapt an existing code based on
qat.dqs
to use qat.fermion
The module is now called
qat.fermion
(replacesqat.dqs
)The
qchem
submodule has been renamedchemistry
(qat.fermion.chemistry
)
qat.dqs.fermionic_util
functions have now been included inqat.fermion.util
:
the function
exact_eigen_energies
has been deleted. Use any eigenvalue solver on the Hamiltonian matrix directly. You can generate the matrix usingget_matrix()
methodthe function
fermionic_hamiltonian_exponential
has been deleted. Compute the exponential of the matrix obtained viaget_matrix()
directly
qat.dqs.impurity
models have been relocated inqat.fermion.hamiltonians
qat.dqs.ansatz_circuits
has been renamedqat.fermion.circuits
qat.dqs.qchem.ucc
has been renamedqat.fermion.chemistry.ucc
:
build_ucc_ansatz
has been deprecated. It has been relocated toqat.fermion.chemistry.ucc_deprecated
, but the methodconstruct_ucc_ansatz()
inqat.fermion.chemistry.ucc
should be used instead. The underlying lower level methods have been clarified and can be used as wellThe
get_initial_params_and_cluster_ops
function has been split into 3 separate functions for better clarity and maintenability:
guess_init_params()
to get the initial parameter guess computed via 2nd order Mollet-Plesset perturbation theory
get_hf_ket()
to get the Hartree-Fock state
get_cluster_ops()
to get the cluster operator list
select_excitation_operators
andget_cluster_ops
have been updated. The deprecated versions are located inqat.fermion.chemistry.ucc_deprecated
get_active_space_hamiltonian
has been deprecated. It can still be found inqat.fermion.chemistry.ucc_deprecated