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

Remove redundant commutator computations from lie_closure #6724

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dwierichs
Copy link
Contributor

Context:
qml.lie_closure computes redundant commutators, as described in #6414.

Description of the Change:
Change the computation to only consider each operator combination once, avoiding redundant commutator computations. We essentially follow the approach linked in #6414, which is also taking in qml.labs.dla.lie_closure_dense.

Benefits:
Performance.

Possible Drawbacks:
N/A

Related GitHub Issues:
closes #6414

Copy link

codecov bot commented Dec 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (master@ff3c1f9). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #6724   +/-   ##
=========================================
  Coverage          ?   99.62%           
=========================================
  Files             ?      474           
  Lines             ?    44628           
  Branches          ?        0           
=========================================
  Hits              ?    44459           
  Misses            ?      169           
  Partials          ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Eliminate redundant commutation checks in lie_closure
1 participant