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.

LocalPreparationBasis.matrix_shape

LocalPreparationBasis.matrix_shape(qubits)[source]

Return the shape of subsystem dimensions of the state attr:~matrix.

Parameters:

qubits (Sequence[int]) – the physical qubit subsystems.

Return type:

Tuple[int, ...]

Returns:

A tuple of subsystem dimensions for the specified qubits.