-
Notifications
You must be signed in to change notification settings - Fork 616
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[labs.dla 5] All Cartan involutions + Cartan subalgebra (#6396)
Providing dense implementations for all Cartan involutions listed in appendix C of https://arxiv.org/abs/2406.04418 Adds * `recursive_cartan_decomp` function for recursive cartan decompositions with the appropriate basis changes in between * All canonical Cartan involutions working both with dense and operator representations * `cartan_subalgebra` function to compute the Cartan subalgebra (CSA), i.e. the maximal Abelian subalgebra of $\mathfrak{m}$ using the adjoint representation * misc. helper functions Iterative Cartan decomposition: ```python 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)}") ``` ```pycon First iteration: 36, 28 Second iteration: 16, 20 ``` [sc-76116] --------- Co-authored-by: David Wierichs <david.wierichs@xanadu.ai> Co-authored-by: Pietropaolo Frisoni <pietropaolo.frisoni@xanadu.ai>
- Loading branch information
Showing
9 changed files
with
1,640 additions
and
202 deletions.
There are no files selected for viewing
This file contains 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 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.