---
title: "Quantum Groups"
canonical: "https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/index-quantum-groups.html"
source: "https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/index-quantum-groups.md"
part: "Lie Theory"
chapter: "Quantum Groups"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Lie Theory", "source": "https://docs.magma-maths.org/v2.30-1/LieTheory/index-lie-theory.md"}
prev: {"title": "Bibliography", "source": "https://docs.magma-maths.org/v2.30-1/LieTheory/KacMoodyLieAlgebras/bibliography.md"}
next: {"title": "Introduction", "source": "https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/introduction.md"}
---

<a id="chap-quagrps"></a>
<a id="id1"></a>
# Quantum Groups

- [Introduction](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/introduction.md)
- [Background](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/background.md)
  - [Gaussian Binomials](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/background.md#gaussian-binomials)
  - [Quantized Enveloping Algebras](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/background.md#quantized-enveloping-algebras)
  - [Representations of $U_q(L)$](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/background.md#representations-of-u-q-l)
  - [PBW-type Bases](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/background.md#pbw-type-bases)
  - [The ${\mathbb{Z}}$-form of $U_q(L)$](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/background.md#the-mathbb-z-form-of-u-q-l)
  - [The Canonical Basis](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/background.md#the-canonical-basis)
  - [The Path Model](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/background.md#the-path-model)
- [Gauss Numbers](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/gauss.md)
  - [`GaussNumber(n, v): RngIntElt, RngElt → RngElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/gauss.md#function-gaussnumber-rngintelt-rngelt)
  - [`GaussianFactorial(n, v): RngIntElt, RngElt → RngElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/gauss.md#function-gaussianfactorial-rngintelt-rngelt)
  - [`GaussianBinomial(n, k, v): RngIntElt, RngIntElt, RngElt → RngElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/gauss.md#function-gaussianbinomial-rngintelt-rngintelt-rngelt)
  - [Example: Gaussian Binomial Coefficients](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/gauss.md#example-ex-331222)
- [Construction](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/construct.md)
  - [`QuantizedUEA(R): RootDtm → AlgQUE`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/construct.md#function-quantizeduea-rootdtm)
  - [`QuantizedUEAlgebra(R): RootDtm → AlgQUE`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/construct.md#function-quantizeduealgebra-rootdtm)
  - [`QuantizedUniversalEnvelopingAlgebra(R): RootDtm → AlgQUE`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/construct.md#function-quantizeduniversalenvelopingalgebra-rootdtm)
  - [Example: Constructing a Quantum Group](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/construct.md#example-ex-578e8e)
  - [`AssignNames(U, S): AlgPBW, [ MonStgElt ]`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/construct.md#procedure-assignnames-algpbw-monstgelt)
  - [`ChangeRing(U, R): AlgQUE, Rng → AlgQUE`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/construct.md#function-changering-algque-rng)
- [Related Structures](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/rel-struct.md)
  - [`CoefficientRing(U): AlgQUE → Fld`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/rel-struct.md#function-coefficientring-algque)
  - [`RootDatum(U): AlgQUE → RootDtm`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/rel-struct.md#function-rootdatum-algque)
  - [`PositiveRootsPerm(U): AlgQUE → SeqEnum`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/rel-struct.md#function-positiverootsperm-algque)
  - [Example: Structures Related to a Quantum Group](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/rel-struct.md#example-ex-3ae424)
- [Operations on Elements](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md)
  - [`x + y: AlgQUEElt, AlgQUEElt → AlgQUEElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#operation-op-plus-algqueelt-algqueelt)
  - [`x - y: AlgQUEElt, AlgQUEElt → AlgQUEElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#operation-op-minus-algqueelt-algqueelt)
  - [`x * y: AlgQUEElt, AlgQUEElt → AlgQUEElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#operation-op-times-algqueelt-algqueelt)
  - [`c * x: RngElt, AlgQUEElt → AlgQUEElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#operation-op-times-rngelt-algqueelt)
  - [`x * c: AlgQUEElt, RngElt → AlgQUEElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#operation-op-times-algqueelt-rngelt)
  - [`x ^ n: AlgQUEElt, RngIntElt → AlgQUEElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#operation-op-pow-algqueelt-rngintelt)
  - [`U ! 0: AlgQUE, RngIntElt → AlgQUEElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#operation-op-algque-rngintelt)
  - [`Zero(U): AlgQUE → AlgQUEElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#function-zero-algque)
  - [`U ! 1: AlgQUE, RngIntElt → AlgQUEElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#operation-op-algque-rngintelt-2)
  - [`One(U): AlgQUE → AlgQUEElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#function-one-algque)
  - [`U . i: AlgQUE, RngIntElt → AlgQUEElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#operation-operation-algque-rngintelt-algqueelt)
  - [`U ! r: AlgQUE, Any → AlgQUEElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#operation-op-algque-any)
  - [`KBinomial(U, i, s): AlgQUE, RngIntElt, RngIntElt → AlgQUEElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#function-kbinomial-algque-rngintelt-rngintelt)
  - [`KBinomial(K, s): AlgQUEElt, RngIntElt → AlgQUEElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#function-kbinomial-algqueelt-rngintelt)
  - [`Monomials(u): AlgQUEElt → SeqEnum`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#function-monomials-algqueelt)
  - [`Coefficients(u): AlgQUEElt → SeqEnum`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#function-coefficients-algqueelt)
  - [`K ^ -1: AlgQUEElt, RngIntElt → AlgQUEElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#operation-op-pow-algqueelt-rngintelt-2)
  - [`Degree(u, i): AlgQUEElt, RngIntElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#function-degree-algqueelt-rngintelt)
  - [`KDegree(m, i): AlgQUEElt, RngIntElt → Tup`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#function-kdegree-algqueelt-rngintelt)
  - [Example: Monomials and Coefficients of Quantum Group Elements](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/elts-ops.md#example-ex-a73ba4)
- [Representations](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/representations.md)
  - [`HighestWeightRepresentation(U, w): AlgQUE, SeqEnum → UserProgram`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/representations.md#function-highestweightrepresentation-algque-seqenum)
  - [`HighestWeightModule(U, w): AlgQUE, SeqEnum → ModTupAlg`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/representations.md#function-highestweightmodule-algque-seqenum)
  - [Example: Highest Weight Representation of a Quantum Group](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/representations.md#example-ex-723df4)
  - [`WeightsAndVectors(V): ModAlg → SeqEnum, SeqEnum`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/representations.md#function-weightsandvectors-modalg)
  - [`HighestWeightsAndVectors(V): ModAlg → SeqEnum, SeqEnum`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/representations.md#function-highestweightsandvectors-modalg)
  - [`CanonicalBasis(V): ModAlg → SeqEnum`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/representations.md#function-canonicalbasis-modalg)
  - [Example: Canonical Basis of a Highest Weight Module](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/representations.md#example-ex-36468d)
  - [`TensorProduct(Q): SeqEnum → ModAlg, Map`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/representations.md#function-tensorproduct-seqenum)
  - [Example: Tensor Product of Quantum Group Modules](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/representations.md#example-ex-e51b84)
- [Hopf Algebra Structure](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/hopf-structure.md)
  - [`UseTwistedHopfStructure(U, f, g): AlgQUE, Map, Map`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/hopf-structure.md#procedure-usetwistedhopfstructure-algque-map-map)
  - [`HasTwistedHopfStructure(U): AlgQUE → BoolElt, List`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/hopf-structure.md#function-hastwistedhopfstructure-algque)
  - [`Counit(U): AlgQUE → Map`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/hopf-structure.md#function-counit-algque)
  - [`Antipode(U): AlgQUE → Map`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/hopf-structure.md#function-antipode-algque)
  - [`Comultiplication(U, d): AlgQUE, RngIntElt → UserProgram`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/hopf-structure.md#function-comultiplication-algque-rngintelt)
  - [Example: Comultiplication of a Quantized Enveloping Algebra](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/hopf-structure.md#example-ex-a3845c)
- [Automorphisms](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/automorphisms.md)
  - [`BarAutomorphism(U): AlgQUE → Map`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/automorphisms.md#function-barautomorphism-algque)
  - [`AutomorphismOmega(U): AlgQUE → Map`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/automorphisms.md#function-automorphismomega-algque)
  - [`AntiAutomorphismTau(U): AlgQUE → Map`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/automorphisms.md#function-antiautomorphismtau-algque)
  - [`AutomorphismTalpha(U, k): AlgQUE, RngIntElt → Map`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/automorphisms.md#function-automorphismtalpha-algque-rngintelt)
  - [`DiagramAutomorphism(U, p): AlgQUE, GrpPermElt → Map`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/automorphisms.md#function-diagramautomorphism-algque-grppermelt)
  - [`GraphAutomorphism(U, p): AlgQUE, GrpPermElt → Map`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/automorphisms.md#function-graphautomorphism-algque-grppermelt)
  - [Example: Automorphisms of a Quantum Group](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/automorphisms.md#example-ex-f34802)
- [Kashiwara Operators](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/kashiwara-ops.md)
  - [`Falpha(m, i): AlgQUEElt, RngIntElt → AlgQUEElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/kashiwara-ops.md#function-falpha-algqueelt-rngintelt)
  - [`Ealpha(m, i): AlgQUEElt, RngIntElt → AlgQUEElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/kashiwara-ops.md#function-ealpha-algqueelt-rngintelt)
  - [Example: Kashiwara Operators on Monomials](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/kashiwara-ops.md#example-ex-eb13a8)
- [The Path Model](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/path-model.md)
  - [`DominantLSPath(R, hw): RootDtm, SeqEnum → PathLS`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/path-model.md#function-dominantlspath-rootdtm-seqenum)
  - [`Falpha(p, i): PathLS, RngIntElt → PathLS`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/path-model.md#function-falpha-pathls-rngintelt)
  - [`Ealpha(p, i): PathLS, RngIntElt → PathLS`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/path-model.md#function-ealpha-pathls-rngintelt)
  - [`WeightSequence(p): PathLS → SeqEnum`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/path-model.md#function-weightsequence-pathls)
  - [`RationalSequence(p): PathLS → SeqEnum`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/path-model.md#function-rationalsequence-pathls)
  - [`EndpointWeight(p): PathLS → ModTupRngElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/path-model.md#function-endpointweight-pathls)
  - [`Shape(p): PathLS → ModTupRngElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/path-model.md#function-shape-pathls)
  - [`WeylWord(p): PathLS → SeqEnum`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/path-model.md#function-weylword-pathls)
  - [`IsZero(p): PathLS → BoolElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/path-model.md#function-iszero-pathls)
  - [`p1 eq p2: PathLS, PathLS → BoolElt`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/path-model.md#operation-op-eq-pathls-pathls)
  - [Example: LS Paths and Root Operators](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/path-model.md#example-ex-cccc8c)
  - [`CrystalGraph(R, hw): RootDtm, SeqEnum → GrphDir, SeqEnum`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/path-model.md#function-crystalgraph-rootdtm-seqenum)
  - [Example: Crystal Graph of a Representation](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/path-model.md#example-ex-3f9751)
- [Elements of the Canonical Basis](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/canbas.md)
  - [`CanonicalElements(U, w): AlgQUE, SeqEnum → SeqEnum`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/canbas.md#function-canonicalelements-algque-seqenum)
  - [Example: Canonical Basis Elements](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/canbas.md#example-ex-60f4ee)
  - [Example: Canonical Basis and Crystal Graphs](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/canbas.md#example-ex-7c2231)
- [Homomorphisms to the Universal Enveloping Algebra](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/q.md)
  - [`QUAToIntegralUEAMap(U): AlgQUE → Map`](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/q.md#function-quatointegralueamap-algque)
  - [Example: Map to the Integral Enveloping Algebra](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/q.md#example-ex-08caa9)
- [Bibliography](https://docs.magma-maths.org/v2.30-1/LieTheory/QuantumGroups/bibliography.md)
