---
title: IndexedSpace (latest version)
description: API reference for qiskit_noise_learning.math.IndexedSpace in the latest version of qiskit-noise-learning
source: https://quantum.cloud.ibm.com/docs/en/api/qiskit-noise-learning/generated/math-indexed-space
---

# qiskit\_noise\_learning.math.IndexedSpace

*class* `qiskit_noise_learning.math.IndexedSpace`

[GitHub](https://github.com/Qiskit/qiskit-noise-learning/tree/stable/0.1/qiskit_noise_learning/math/indexed_space.py)

Bases: [`Generic`](https://docs.python.org/3/library/typing.html#typing.Generic)\[`Index`], [`ABC`](https://docs.python.org/3/library/abc.html#abc.ABC)

Abstract description of a vector space with arbitrary basis index types.

### \_\_init\_\_

`__init__()`

## Methods

|                                                                                                                      |   |
| -------------------------------------------------------------------------------------------------------------------- | - |
| [`__init__`](#qiskit_noise_learning.math.IndexedSpace.__init__ "qiskit_noise_learning.math.IndexedSpace.__init__")() |   |

## Attributes

|                                                                                                     |                                           |
| --------------------------------------------------------------------------------------------------- | ----------------------------------------- |
| [`dim`](#qiskit_noise_learning.math.IndexedSpace.dim "qiskit_noise_learning.math.IndexedSpace.dim") | The dimension (cardinality) of the space. |

### dim

*abstract property*

Type: [`int`](https://docs.python.org/3/library/functions.html#int) | [`float`](https://docs.python.org/3/library/functions.html#float)

The dimension (cardinality) of the space.

May be `math.inf` for infinite-dimensional spaces.
