qp.typing.Complex¶
- Complex = AbstractArray((), complex128, weak_type=True)¶
An
AbstractArrayofdtype=complex. On its own, it corresponds to a single scalar, but can be indexed into to create theAbstractArraywith 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)