Magnets: changed implementation of edge coloring#2925
Merged
msoeken merged 3 commits intofeature/qrefrom Feb 9, 2026
Merged
Conversation
msoeken
approved these changes
Feb 9, 2026
msoeken
added a commit
that referenced
this pull request
Feb 9, 2026
… recursion (#2926) Changed some basic functionality: - The TrotterStep class is now just a wrapper class with some information functions and an iterator - Factory functions instantiate TrotterStep classes at desired orders (trotter_decomposition, strang_splitting) Added recursion - Both the Suzuki fractal recursion and Yoshide triple recursion are implemented (suzuki_recursion, yoshide_recursion) - fourth_order_trotter_suzuki is a convenience function for strang_splitting composed with suzuki_recursion Tests added. This PR is independent from #2925. --------- Co-authored-by: Mathias Soeken <mathias.soeken@outlook.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Changed how edge coloring is implemented:
Convention: self loops are all called "color" -1. Remaining colors are 0, 1, ....
Updated all the examples of graphs to using this coloring implementation
All test files updated.