You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 04d9fde
Browse filesBrowse the repository at this point in the historyBrowse files
Add support for local expectation values of tensor product and MPO terms (#425)
* Add support for local expectation values of tensor product and MPO terms
* Fix MPO term validation and arithmetic
Validate physical and bond spaces, preserve input containers, and support scalar promotion without losing tensor-product dispatch. Reject unsupported term accumulation and real/imaginary operations, and consolidate regression tests.
* Support factored observables in single-layer PEPO expectation values
Add the missing single-layer MPO overload and document both PEPO evaluation forms. Cover tensor-product and MPO terms in single-layer and purified PEPOs with compact tests for trivial and fermionic symmetry.
* Add BP fallback for factored expectation values
Convert BP environments to CTMRG environments for MPO and tensor-product terms, with a TODO for native BP boundary contractions. Add regression comparisons against dense BP expectation values.
* Fix storagetype for factored terms and scale them through VectorInterface
* Unify scalar type in a MPO/TensorProduct when adding to a LocalOperator
* Docstring clarifications
* Split local operator into focused smaller files
* Preparation to fusing charges into MPO and tensor product terms
* Number-of-site consistency check
---------
Co-authored-by: Yue Zhengyuan <yuezy1997@icloud.com>
add_term!(operator::LocalOperator, inds::AbstractVector, term::AbstractTensorMap; kwargs...) =add_term!(operator, CartesianIndex{2}[CartesianIndex{2}(ind) for ind in inds], term; kwargs...)
0 commit comments