Skip to content

Commit

Permalink
Add comment to explain type checking change in BackendEstimator example
Browse files Browse the repository at this point in the history
  • Loading branch information
ElePT committed Dec 18, 2024
1 parent 7d87696 commit ebb7b5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/migration-guides/external-providers-primitives-v2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ from qiskit.primitives import BackendEstimatorV2
class CustomEstimator(BackendEstimatorV2):
"""Estimator primitive for custom provider."""

# This line is for type checking purposes.
# We are changing the type of self._backend from qiskit's
# BackendV1/BackendV2 classes to our custom provider resource.
_backend: CustomProviderResource

def __init__(
Expand Down

0 comments on commit ebb7b5b

Please sign in to comment.