Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore "expert-mode" Hamiltonian constructors #257

Merged
merged 8 commits into from
Mar 3, 2025
Merged

Conversation

lkdvos
Copy link
Member

@lkdvos lkdvos commented Feb 21, 2025

This PR aims to (re)implement the constructor of an Hamiltonian MPO through a matrix of missings, numbers and MPOTensors.

Fixes #254.

To do:

  • Accept Matrix{T} for any T and attempt to deduce types
  • InfiniteMPOHamiltonian case
  • better testing

Copy link

codecov bot commented Feb 21, 2025

Codecov Report

Attention: Patch coverage is 94.59459% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/operators/mpohamiltonian.jl 94.59% 8 Missing ⚠️
Files with missing lines Coverage Δ
src/states/finitemps.jl 77.97% <ø> (ø)
src/operators/mpohamiltonian.jl 86.73% <94.59%> (+3.12%) ⬆️

@lkdvos lkdvos force-pushed the mpoham-constructor branch from ac10896 to c8bea98 Compare March 3, 2025 15:18
@lkdvos lkdvos merged commit c322570 into master Mar 3, 2025
28 checks passed
@lkdvos lkdvos deleted the mpoham-constructor branch March 3, 2025 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Manually defining MPOs
1 participant