Repository navigation
updates MPO class to allow construction of arbitrary Pauli Hamiltonians #216
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
Merged
aaronleesander
merged 44 commits into
munich-quantum-toolkit:main
from
thilomueller:MPO_generator
Jan 12, 2026
Merged
Changes from 13 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
335239d
added first initial version to initialize a MPO from sum of operators…
thilomueller 2b56979
improved function description
thilomueller 7499c43
added option to truncate MPO at maximum bond dimension
thilomueller 7abfddb
added test case for init_from_full_matrix
thilomueller 731e186
added test case for init_from_sum_op
thilomueller 6cffd1a
Merge remote-tracking branch 'origin/main' into MPO_generator
thilomueller 1f2149e
implemented generic MPO construction following Hubig et al.
thilomueller 445ddd3
removed redundant if-branch in bond-1 MPO helper function
thilomueller 8caf79f
removed duplicate Hamiltonian matrix computation in init_from_terms t…
thilomueller 1afc1aa
changed MPO product calculation to use tensordot and reshape instead …
thilomueller a1b7003
handle special case of single-site MPO in _mpo_sum helper function an…
thilomueller cc345de
🎨 pre-commit fixes
pre-commit-ci[bot] daee7c3
Merge branch 'munich-quantum-toolkit:main' into MPO_generator
thilomueller ccbc85a
added interface for sparse initialization of general MPO construction
thilomueller df6f8b3
added regex escape and type guards
thilomueller 4c09173
Merge branch 'main' into MPO_generator
aaronleesander 4bd7e62
Merge branch 'main' into MPO_generator
aaronleesander a4f8245
generic MPO construction using only Pauli strings
aaronleesander 1976032
updated tests to match new ising and heisenberg forms
aaronleesander 08a9aff
🎨 pre-commit fixes
pre-commit-ci[bot] 21c1401
Merge branch 'main' into MPO_generator
aaronleesander e80ce0d
renamed Hamiltonian initialization methods
aaronleesander cee5ebb
renamed identity initialization method
aaronleesander f6528fc
renamed custom params, re-ordered methods for readability
aaronleesander 2783a0f
🎨 pre-commit fixes
pre-commit-ci[bot] 9869b6f
made ising and heisenberg classmethods, changed usage
aaronleesander edabf3b
Merge branch 'MPO_generator' of https://github.com/thilomueller/mqt-y…
aaronleesander 50f6089
🎨 pre-commit fixes
pre-commit-ci[bot] 72bab33
coupled transmon now changed to class method, usage changed
aaronleesander 1350f7b
updated MPO usage
aaronleesander 6e0ee7b
Merge branch 'MPO_generator' of https://github.com/thilomueller/mqt-y…
aaronleesander 0a57dcf
🎨 pre-commit fixes
pre-commit-ci[bot] 8a56571
ruff fixes and docstring updates
aaronleesander 05f7098
mypy fixes
aaronleesander 2788b7a
fixed missing variable assignment
aaronleesander 05efc68
🎨 pre-commit fixes
pre-commit-ci[bot] b30d3a9
added check for OSError
aaronleesander ecd7cf9
added cpu count exception handling
aaronleesander 067521d
updated changelog
aaronleesander 3528220
updated example to include new Hamiltonian constructors
aaronleesander 796d86e
fixed broken doc
aaronleesander a81565a
added new tests for coverage
aaronleesander 0a24d72
Merge branch 'main' into MPO_generator
aaronleesander 6689d0c
added more tests for coverage
aaronleesander File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.