DecomposeTypeError#

qualtran.DecomposeTypeError

Raised if a decomposition does not make sense in this context.

In contrast to DecomposeNotImplementedError, a decomposition does not make sense in this context. This can be raised if the bloq is “atomic” – that is, considered part of the compilation target gateset. This can be raised if certain bloq attributes do not permit a decomposition, most commonly if an attribute is symbolic.