qp.typing.Complex

Complex = AbstractArray((), complex128, weak_type=True)

An AbstractArray of dtype=complex. On its own, it corresponds to a single scalar, but can be indexed into to create the AbstractArray with arbitrary dimensions.

>>> isinstance(np.array(0 + 1.2j), qp.typing.Complex)
True
>>> qp.typing.Complex[4, 2]
AbstractArray((4, 2), complex128, weak_type=True)
>>> qp.typing.Complex[-1, 10]
AbstractArray((-1, 10), complex128, weak_type=True)