---
title: "Attributes of Orders"
canonical: "https://docs.magma-maths.org/v2.30-1/Algebras/QuaternionAlgebras/order-attributes.html"
source: "https://docs.magma-maths.org/v2.30-1/Algebras/QuaternionAlgebras/order-attributes.md"
part: "Algebras"
chapter: "Quaternion Algebras"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Algebras", "source": "https://docs.magma-maths.org/v2.30-1/Algebras/index-algebras.md"}
  - {"title": "Quaternion Algebras", "source": "https://docs.magma-maths.org/v2.30-1/Algebras/QuaternionAlgebras/index-quaternion-algebras.md"}
prev: {"title": "Recognition Functions", "source": "https://docs.magma-maths.org/v2.30-1/Algebras/QuaternionAlgebras/matrix-ring-test.md"}
next: {"title": "Predicates of Orders", "source": "https://docs.magma-maths.org/v2.30-1/Algebras/QuaternionAlgebras/order-pred.md"}
intrinsics:
  - {"name": "Algebra", "signature": "Algebra(S): AlgQuatOrd -> AlgQuat"}
  - {"name": "QuaternionAlgebra", "signature": "QuaternionAlgebra(S): AlgQuatOrd -> AlgQuat"}
  - {"name": "BasisMatrix", "signature": "BasisMatrix(S): AlgQuatOrd -> AlgMatElt"}
  - {"name": "EmbeddingMatrix", "signature": "EmbeddingMatrix(S): AlgQuatOrd -> AlgMatElt"}
  - {"name": "Discriminant", "signature": "Discriminant(S): AlgQuatOrd -> RngElt"}
  - {"name": "FactoredDiscriminant", "signature": "FactoredDiscriminant(S): AlgQuatOrd -> SeqEnum"}
  - {"name": "Conductor", "signature": "Conductor(S): AlgQuatOrd -> RngElt"}
  - {"name": "Level", "signature": "Level(S): AlgQuatOrd -> RngElt"}
  - {"name": "Normalizer", "signature": "Normalizer(S): AlgAssVOrd -> Grp, Map"}
---

# Attributes of Orders

For further information about orders of associative algebras, see Section [Orders](https://docs.magma-maths.org/v2.30-1/Algebras/AssociativeAlgebras/alg_ass_ord.md#secalgassvord).

For a quaternion order $S$ over ${\mathbb{Z}}$ or ${\mathbb{F}}_q[X]$, Magma additionally defines the following functions.

<a id="function-algebra-algquatord"></a>
## `Algebra(S): AlgQuatOrd -> AlgQuat`

<a id="function-quaternionalgebra-algquatord"></a>
## `QuaternionAlgebra(S): AlgQuatOrd -> AlgQuat`

The quaternion algebra for which $S$ is an order.

<a id="function-basismatrix-algquatord"></a>
## `BasisMatrix(S): AlgQuatOrd -> AlgMatElt`

<a id="function-embeddingmatrix-algquatord"></a>
## `EmbeddingMatrix(S): AlgQuatOrd -> AlgMatElt`

Returns the basis matrix of the quaternion order $S$ over ${\mathbb{Z}}$ or ${\mathbb{F}}_q[X]$. The rows of the matrix give the basis elements of $S$ with respect to the basis of the container algebra.

<a id="function-discriminant-algquatord"></a>
## `Discriminant(S): AlgQuatOrd -> RngElt`

Given an order $S$ over ${\mathbb{Z}}$ or ${\mathbb{F}}_q[X]$, this function returns the reduced discriminant of $S$ as a positive integer or a normalized polynomial.

<a id="function-factoreddiscriminant-algquatord"></a>
## `FactoredDiscriminant(S): AlgQuatOrd -> SeqEnum`

Given a quaternion order $S$, this function returns the factorisation of the reduced discriminant of $S$ (that is, `Factorization(Discriminant(S))`).

<a id="function-conductor-algquatord"></a>
## `Conductor(S): AlgQuatOrd -> RngElt`

<a id="function-level-algquatord"></a>
## `Level(S): AlgQuatOrd -> RngElt`

Given an order $S$ over ${\mathbb{Z}}$ or ${\mathbb{F}}_q[X]$ in a quaternion algebra $A$, this function returns the reduced index of $S$ in a maximal order of $A$ containing it. Together with the reduced discriminant of the order, this serves to classify the local isomorphism class of an Eichler order.

<a id="function-normalizer-algassvord"></a>
## `Normalizer(S): AlgAssVOrd -> Grp, Map`

Let $S$ be an order in a definite quaternion algebra $A$ over a field $F$ where $F$ is the rationals, $\F_q(t)$, or a number field. This function returns a matrix group $G$ isomorphic to the normalizer of $S$ in $A^*$ modulo $F^*$. A homomorphism from $G$ to $A^*$ is also returned.
