ValidationError
- exception ValidationError
Raised when an argument doesn’t satisfy a precondition.
Covers wrong-type or wrong-shape input (e.g. a gate set, circuit or device model that doesn’t match what’s expected), as distinct from a config problem (
ConfigError) or a backend failure (BackendError).