Ob#
- class discopy.quantum.circuit.Ob(name, dim=2, z=0)[source]#
Bases:
RealConjugate,ObImplement the generating objects of
Circuit, i.e. information units of some integer dimension greater than 1.Examples
>>> assert bit.objects == [Ob("bit", dim=2)] >>> assert qubit.objects == [Ob("qubit", dim=2)]
- property dim#
Dimension of the unit, e.g.
dim=2for bits and qubits.