mindquantum.core.operators.InteractionOperator
- class mindquantum.core.operators.InteractionOperator(constant, one_body_tensor, two_body_tensor)[source]
Class to store 'interaction opeartors' which are used to configure a ferinonic molecular Hamiltonian.
The Hamiltonian including one-body and two-body terms which conserve spin and parity. In this module, the stored coefficient could be represented the molecular Hamiltonians through the FermionOperator class.
Note
The operators stored in this class has the form:
Where
is a constant.- Parameters
constant (numbers.Number) – A constant term in the operator given as a float. For instance, the nuclear repulsion energy.
one_body_tensor (numpy.ndarray) – The coefficients of the one-body terms (h[p, q]). This is an
numpy array of floats. By default we store the numpy array with keys: (1,0).two_body_tensor (numpy.ndarray) – The coefficients of the two-body terms (h[p, q, r, s]). This is an
numpy array of floats.By default we store the numpy array with keys: (1, 1, 0, 0).
- unique_iter(complex_valued=False)[source]
Iterate all terms that are not in the same symmetry group.
- Four point symmetry:
pq = qp.
pqrs = srqp = qpsr = rspq.
- Eight point symmetry(when complex_valued is False):
pq = qp.
pqrs = rqps = psrq = srqp = qpsr = rspq = spqr = qrsp.
- Parameters
complex_valued (bool) – Whether the operator has complex coefficients. Default: False.