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

[labs.dla 5] [WIP] (Almost) All Cartan involutions #6396

Draft
wants to merge 42 commits into
base: cartan
Choose a base branch
from

Conversation

Qottmann
Copy link
Contributor

@Qottmann Qottmann commented Oct 15, 2024

Providing dense implementations for all Cartan involutions listed in appendix C of https://arxiv.org/abs/2406.04418

Not sure if we should make this pennylane.labs functionality yet, but required for research purposes atm

Iterative Cartan decomposition:

from pennylane.labs.dla import AI, AII, AIII, BDI, CI, CII, DIII, cartan_decomposition, check_cartan_decomp

g = list(qml.pauli.pauli_group(3)) # su(8)
g = [qml.matrix(_, wire_order=range(3)) for _ in g]
k0, m0 = cartan_decomposition(g, AII)
print(f"First iteration: {len(k0)}, {len(m0)}")
assert check_cartan_decomp(k0, m0)

k1, m1 = cartan_decomposition(k0, CI)
assert check_cartan_decomp(k1, m1)
print(f"Second iteration: {len(k1)}, {len(m1)}")
First iteration: 36, 28
Second iteration: 16, 20

[sc-76116]

@Qottmann Qottmann changed the base branch from master to cartan October 15, 2024 10:13
Copy link
Contributor

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

@Qottmann Qottmann changed the title [labs] [WIP] (Almost) All Cartan involutions [labs.dla 5] [WIP] (Almost) All Cartan involutions Nov 11, 2024
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.

2 participants