Skip to main content
This project is in beta. Found a bug? Open a GitHub issue. Question or idea? Ask in Discussions — we'd love your feedback!

Introduction to IBM Quantum primitives

Primitives were created to simplify the most common tasks for quantum computers: namely, sampling quantum states and calculating expectation values. The IBM Quantum primitives (Estimator and Sampler) are implementations of the Qiskit primitives base classes. They provide a more sophisticated implementation (for example, by including error mitigation) as a cloud-based service and are used to access IBM Quantum® hardware.

The newest IBM Quantum primitive, Executor (which is in beta), provides a lower-level interface that gives more visibility and control without sacrificing performance. Executor also exposes additional capabilities that Sampler does not offer, such as additional twirling groups and twirling for circuits with fractional gates. Refer to Migrate from Sampler to Executor for more information on whether to migrate to Executor.

Next steps​

Recommendations