Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.
Important

IBM Quantum Platform is moving and this version will be sunset on July 1. To get started on the new platform, read the migration guide.

Models and Schemas

qiskit.validation


Base

BaseModel([validate])Base class for Models for validated Qiskit classes.
BaseSchema(*[, only, exclude, many, …])Base class for Schemas for validated Qiskit classes.
bind_schema(schema, **kwargs)Class decorator for adding schema validation to its instances.
ModelTypeValidator(*[, load_default, …])A field able to validate the correct type of a value.

Exceptions

ModelValidationError(message[, field_name, …])Raised when a sequence subscript is out of range.
Was this page helpful?
Report a bug or request content on GitHub.