qp.typing

Int

An AbstractArray of dtype=int.

Float

An AbstractArray of dtype=float.

Bool

An AbstractArray of dtype=bool.

Complex

An AbstractArray of dtype=complex.

Wire

An AbstractWires subclass.

Warning

Unless you are a developer, you likely do not need to use the abstract types below.

AbstractArray(shape, dtype)

An abstract representation of an array that contains the shape and dtype attributes necessary for resource calculations.

AbstractWires(_num_wires)

An abstract representation of a sequence of wires that contains the number of wires, useful for resource calculations.