---
title: "Database of Finite Quaternionic Matrix Groups"
canonical: "https://docs.magma-maths.org/v2.30-1/FiniteGroups/DatabasesOfGroups/quatgps.html"
source: "https://docs.magma-maths.org/v2.30-1/FiniteGroups/DatabasesOfGroups/quatgps.md"
part: "Finite Groups"
chapter: "Databases of Groups"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Finite Groups", "source": "https://docs.magma-maths.org/v2.30-1/FiniteGroups/index-finite-groups.md"}
  - {"title": "Databases of Groups", "source": "https://docs.magma-maths.org/v2.30-1/FiniteGroups/DatabasesOfGroups/index-databases-of-groups.md"}
prev: {"title": "Database of Integral Maximal Finite Matrix Groups", "source": "https://docs.magma-maths.org/v2.30-1/FiniteGroups/DatabasesOfGroups/intgps.md"}
next: {"title": "Database of Finite Symplectic Matrix Groups", "source": "https://docs.magma-maths.org/v2.30-1/FiniteGroups/DatabasesOfGroups/symplgps.md"}
intrinsics:
  - {"name": "QuaternionicMatrixGroupDatabase", "signature": "QuaternionicMatrixGroupDatabase() -> DB"}
  - {"name": "LargestDimension", "signature": "LargestDimension(D): DB -> RngIntElt"}
  - {"name": "#", "signature": "# D: DB -> RngIntElt"}
  - {"name": "NumberOfGroups", "signature": "NumberOfGroups(D): DB -> RngIntElt"}
  - {"name": "NumberOfLattices", "signature": "NumberOfLattices(D): DB -> RngIntElt"}
  - {"name": "NumberOfGroups", "signature": "NumberOfGroups(D, d): DB, RngIntElt -> RngIntElt"}
  - {"name": "NumberOfLattices", "signature": "NumberOfLattices(D, d): DB, RngIntElt -> RngIntElt"}
  - {"name": "Group", "signature": "Group(D, i): DB, RngIntElt -> GrpMat"}
  - {"name": "Lattice", "signature": "Lattice(D, i): DB, RngIntElt -> Lat, SeqEnum"}
  - {"name": "Construction", "signature": "Construction(D, i): DB, RngIntElt -> MonStgElt, RngIntElt"}
  - {"name": "Group", "signature": "Group(D, d, i): DB, RngIntElt, RngIntElt -> GrpMat"}
  - {"name": "Lattice", "signature": "Lattice(D, d, i): DB, RngIntElt, RngIntElt -> Lat, SeqEnum"}
  - {"name": "Construction", "signature": "Construction(D, d, i): DB, RngIntElt, RngIntElt -> MonStgElt, RngIntElt"}
examples:
  - "ex-00c791"
---

# Database of Finite Quaternionic Matrix Groups

Magma includes a database of the finite absolutely irreducible subgroups of ${\operatorname{GL}}_n({\cal D})$ where ${\cal D}$ is a definite quaternion algebra whose centre has degree $d$ over ${\mathbb{Q}}$ and $nd\leq10$. This collection is due to Gabriele Nebe [[Neb98](https://docs.magma-maths.org/v2.30-1/references.md#cite-nebe-quaternionic)]. This section defines the interface to that database.

A particular entry of the database can be specified in one of two ways. Firstly, a number in the range 1 to the size of the database can be given. Alternatively, the desired dimension can be provided, together with a number in the range 1 to the number of entries of that dimension.

Each entry can be accessed either as a matrix group or as a lattice. If accessed as a matrix group, the order and base are set on return.

<a id="function-quaternionicmatrixgroupdatabase"></a>
## `QuaternionicMatrixGroupDatabase() -> DB`

This function returns a database object which contains information about the database.

<a id="function-largestdimension-db-3"></a>
## `LargestDimension(D): DB -> RngIntElt`

Returns the largest dimension of any entry stored in the database. It is an error to refer to larger dimensions in the database.

<a id="operation-operation-db-rngintelt"></a>
## `# D: DB -> RngIntElt`

<a id="function-numberofgroups-db-4"></a>
## `NumberOfGroups(D): DB -> RngIntElt`

<a id="function-numberoflattices-db-3"></a>
## `NumberOfLattices(D): DB -> RngIntElt`

Returns the number of entries stored in the database.

<a id="function-numberofgroups-db-rngintelt-4"></a>
## `NumberOfGroups(D, d): DB, RngIntElt -> RngIntElt`

<a id="function-numberoflattices-db-rngintelt-3"></a>
## `NumberOfLattices(D, d): DB, RngIntElt -> RngIntElt`

Returns the number of entries stored in the database of dimension $d$.

<a id="function-group-db-rngintelt-4"></a>
## `Group(D, i): DB, RngIntElt -> GrpMat`

Returns the $i$-th entry from the database $D$ as a matrix group.

<a id="function-lattice-db-rngintelt-3"></a>
## `Lattice(D, i): DB, RngIntElt -> Lat, SeqEnum`

Returns a lattice $L$ and sequence of forms $F$ corresponding to the $i$-th entry of the database $D$.

<a id="function-construction-db-rngintelt-2"></a>
## `Construction(D, i): DB, RngIntElt -> MonStgElt, RngIntElt`

Returns a string and integer which describe the construction of the $i$-th entry of the database $D$.

<a id="function-group-db-rngintelt-rngintelt-5"></a>
## `Group(D, d, i): DB, RngIntElt, RngIntElt -> GrpMat`

Returns the $i$-th entry of dimension $d$ in the database $D$ as a matrix group.

<a id="function-lattice-db-rngintelt-rngintelt-3"></a>
## `Lattice(D, d, i): DB, RngIntElt, RngIntElt -> Lat, SeqEnum`

Returns a lattice $L$ and sequence of forms $F$ corresponding to the $i$-th entry of dimension $d$ in the database $D$.

<a id="function-construction-db-rngintelt-rngintelt-2"></a>
## `Construction(D, d, i): DB, RngIntElt, RngIntElt -> MonStgElt, RngIntElt`

Returns a string and integer which describe the construction of the $i$-th entry of dimension $d$ in the database $D$.

<a id="example-ex-00c791"></a>
## `Example: Quaternionic Matrix Groups of Dimension 36 (ex-00c791)`

We illustrate accessing the quaternionic matrix groups database with a group and lattice of dimension 36.

```magma
> DB := QuaternionicMatrixGroupDatabase();
> LargestDimension(DB);
40
> NumberOfGroups(DB, 36);
10
> G := Group(DB, 36, 8);
> G : Minimal;
MatrixGroup(36, Integer Ring) of order 43545600 = 2^10 * 3^5
* 5^2 * 7
> #pCore(G, 2);
2
> L, forms := Lattice(DB, 36, 8);
> Determinant(L);
3874204890000
> IsSquare($1);
true 1968300
```
