qml.labs.dla

Experimental dynamical Lie algebra (DLA) functionality

recursive_cartan_decomp(g, chain[, ...])

Apply a recursive Cartan decomposition specified by a chain of decomposition types.

variational_kak_adj(H, g, dims, adj[, ...])

Variational KaK decomposition of Hermitian H using the adjoint representation.

Utility functions

orthonormalize(basis)

Orthonormalize a list of basis vectors.

pauli_coefficients(H)

Computes the coefficients of one or multiple Hermitian matrices in the Pauli basis.

batched_pauli_decompose(H[, tol, pauli])

Decomposes a Hermitian matrix or a batch of matrices into a linear combination of Pauli operators.

check_orthonormal(g, inner_product)

Utility function to check if operators in g are orthonormal with respect to the provided inner_product.

validate_kak(H, g, k, kak_res, n, error_tol)

Helper function to validate a khk decomposition

run_opt(value_and_grad, theta[, n_epochs, ...])

Boilerplate jax optimization