View source on GitHub |
Modules
contextuality
module: tests for whether operators are contextual contextuality
get_one_norm
module: Function to calculate the 1-Norm of a molecular Hamiltonian in spatial orbital basis after fermion-to-qubit transformation.
Functions
get_one_norm_int(...)
: Returns the 1-Norm of a RHF or ROHF Hamiltonian described in https://arxiv.org/abs/2103.14753 after a fermion-to-qubit transformation given nuclear constant, one-body (2D np.array) and two-body (4D np.array) integrals in spatial orbital basis.
get_one_norm_int_woconst(...)
: Returns 1-norm, emitting the constant term in the qubit Hamiltonian.
get_one_norm_mol(...)
: Returns the 1-Norm of a RHF or ROHF Hamiltonian described in https://arxiv.org/abs/2103.14753 after a fermion-to-qubit transformation given a MolecularData class.
get_one_norm_mol_woconst(...)
: Returns 1-norm, emitting the constant term in the qubit Hamiltonian.
is_contextual(...)
: Determine whether a hamiltonian (instance of QubitOperator) is contextual, in the sense of https://arxiv.org/abs/1904.02260