unitaria.SubspaceFactor

class unitaria.SubspaceFactor[source]

Bases: ABC

abstractmethod dimension() → int[source]

The dimension of the subspace

Raises:

NotImplementedError – If the method is not implemented.

abstractmethod total_qubits() → int[source]

The number of qubits of the state space in which the subspace lives

The dimension of the state space is 2 ** total_qubits

Raises:

NotImplementedError – If the method is not implemented.