S<'unit> Type
A sum of products: the standard form for expressing quantum Hamiltonians.
S represents a sum expression: H = Σᵢ cᵢ Pᵢ, where each Pᵢ is a product term.
This is the standard form for molecular Hamiltonians in quantum chemistry.
Examples:
h₁₂ a†₁ a₂ + h₂₁ a†₂ a₁ — one-body hopping terms Σᵢⱼ Jᵢⱼ ZᵢZⱼ — Ising model Hamiltonian Full molecular Hamiltonians with hundreds of terms
Terms are stored in a map keyed by their string representation to facilitate combining like terms. The (*) operator distributes over sums; (+) collects terms.
Record fields
| Record Field |
Description
|
An overall coefficient applied to the entire sum.
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.IsZero
Returns: bool
|
Indicates whether the entire sum is zero (either zero coefficient or no non-zero terms).
|
|
Returns a normalized form with the overall coefficient distributed into each term.
|
|
Lazily evaluated array of all product terms in this sum.
|
|
Returns a reduced form with zero terms removed.
|
Static members
| Static member |
Description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The multiplicative identity: coefficient 1, no terms.
|