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

Operator interface #76

Merged
merged 5 commits into from
Sep 13, 2024
Merged

Operator interface #76

merged 5 commits into from
Sep 13, 2024

Conversation

markusschmitt
Copy link
Owner

@markusschmitt markusschmitt commented Sep 12, 2024

This PR implements a new way to compose BranchFreeOperators:

H = op.BranchFreeOperator()
for l in range(10):
    H += -1.0 * op.Sz(l) * op.Sz(l+1)
    H += -0.3 * op.Sx(l)

Moreover, it fixes #72 and #77 .

@markusschmitt markusschmitt merged commit 129ea53 into master Sep 13, 2024
1 check passed
@markusschmitt markusschmitt deleted the operator_interface branch September 13, 2024 14:54
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.

adding operator_string to branchfree_operator can lead to indexing errors
1 participant