Note

This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.

MeasurementBasis.index_shape

abstract MeasurementBasis.index_shape(qubits)

Return the shape for the specified number of indices.

Parameters:

qubits (Sequence[int]) – the basis subsystems to return the index shape for.

Return type:

Tuple[int, ...]

Returns:

The shape of allowed values for the index on the specified qubits.