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
qchemsubmodule has been renamedchemistry(qat.fermion.chemistry)
qat.dqs.fermionic_utilfunctions have now been included inqat.fermion.util:
the function
exact_eigen_energieshas been deleted. Use any eigenvalue solver on the Hamiltonian matrix directly. You can generate the matrix usingget_matrix()methodthe function
fermionic_hamiltonian_exponentialhas been deleted. Compute the exponential of the matrix obtained viaget_matrix()directly
qat.dqs.impuritymodels have been relocated inqat.fermion.hamiltonians
qat.dqs.ansatz_circuitshas been renamedqat.fermion.circuits
qat.dqs.qchem.ucchas been renamedqat.fermion.chemistry.ucc:
build_ucc_ansatzhas been deprecated. It has been relocated toqat.fermion.chemistry.ucc_deprecated, but the methodconstruct_ucc_ansatz()inqat.fermion.chemistry.uccshould be used instead. The underlying lower level methods have been clarified and can be used as wellThe
get_initial_params_and_cluster_opsfunction 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_operatorsandget_cluster_opshave been updated. The deprecated versions are located inqat.fermion.chemistry.ucc_deprecated
get_active_space_hamiltonianhas been deprecated. It can still be found inqat.fermion.chemistry.ucc_deprecated