Enforce Task type correctness at construction
Author: ihincksCreated Sep 30, 2026Updated Sep 30, 2026
Labelsmod: transpilercore team
Currently, `crate::passmanager::Task`s can be ill-typed due to programmer error: you can insert adjacent passes into a `Task::Group` whose IR types don't agree, for example. On the other hand, boundaries of tasks within a `PassManager` are checked at construction time. This issue is solved when `Task`s are always type-correct with respect to IR chains, and actionable errors are raised when ill-typing is attempted.
Source: Qiskit/qiskit