qml.liealg¶
Overview¶
This module contains functionality to express and manipulate Lie algebras within the context of quantum computing.
In quantum computing, we are typically dealing with vectors in the Hilbert space H=C2n that are manipulated by unitary gates from the special unitary group SU(2n). For full universality, we require the available gates to span all of SU(2n) in order to reach any state in Hilbert space from any other state.
SU(2n) is a Lie group and has an associated Lie algebra to it, called su(2n). In some cases, it is more convenient to work with the associated Lie algebra rather than the Lie group.
Lie algebra functionality¶
|
Compute the (dynamical) Lie algebra from a set of generators. |
|
Compute the structure constants that make up the adjoint representation of a Lie algebra. |
|
Compute the center of a Lie algebra. |
|
Compute the Cartan Decomposition g=k⊕m of a Lie algebra g. |
|
Compute a Cartan subalgebra (CSA) a⊆m. |
Functions¶
|
Helper function to check the validity of a Cartan decomposition g=k⊕m. |
|
Helper function to check [ops1,ops2]⊆vspace. |
|
Helper function to check if all operators in |
|
Transform adjoint vector representations back into operator format. |
|
Decompose a batch of operators into a given operator basis. |
|
Apply a |
Involutions¶
A map θ:g→g from the Lie algebra g to itself is called an involution
if it fulfills θ(θ(g))=g ∀g∈g and is compatible with commutators,
[θ(g),θ(g′)]=θ([g,g′]). Involutions are used to construct a cartan_decomp()
. There are seven canonical
Cartan involutions of classical real simple Lie algebras (AI, AII, AIII, BDI, DIII, CI, CII
)
and one canonical involution for each real semisimple Lie algebra made up of two isomorphic
classical simple components (A, BD, C
).
See, for example, Tab. 4 in Edelman and Jeong.
Note that the functions implemented here do not represent the mathematical involutions directly,
but return a boolean value that indicates whether or not the input is in the +1 eigenspace
of θ. When using them, it is usually assumed that we apply them to operators in the
eigenbasis of the underlying involution θ.
The Even-Odd involution. |
|
The Concurrence Canonical Decomposition Θ(g)=−gT as a Cartan involution function. |
|
|
Canonical Cartan decomposition of type A on su(n)⊕su(n), given by θ:x⊕y↦y⊕x. |
|
Canonical Cartan decomposition of type AI, given by θ:x↦x∗. |
|
Canonical Cartan decomposition of type AII, given by θ:x↦Y0x∗Y0. |
|
Canonical Cartan decomposition of type AIII, given by θ:x↦Ip,qxIp,q. |
|
Canonical Cartan decomposition of type BD on so(n)⊕so(n), given by θ:x⊕y↦y⊕x. |
|
Canonical Cartan decomposition of type BDI, given by θ:x↦Ip,qxIp,q. |
|
Canonical Cartan decomposition of type DIII, given by θ:x↦Y0xY0. |
|
Canonical Cartan decomposition of type C on sp(n)⊕sp(n), given by θ:x⊕y↦y⊕x. |
|
Canonical Cartan decomposition of type CI, given by θ:x↦x∗. |
|
Canonical Cartan decomposition of type CII, given by θ:x↦Kp,qxKp,q. |
Relevant demos¶
Check out the following demos to learn more about Lie algebras in the context of quantum computation: