Skip to content

Commit

Permalink
add link
Browse files Browse the repository at this point in the history
  • Loading branch information
beckykd committed Dec 17, 2024
1 parent 45328ae commit 0edf399
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/open-source/create-a-provider.mdx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
title: Create a provider
description: A short guide on integrating Qiskit into an external provider's quantum resources.
description: A short guide on integrating Qiskit into an external provider's quantum resources.
---
# Integrate external quantum resources with Qiskit

The Qiskit SDK is built to support third parties in creating external providers of quantum resources.
The Qiskit SDK is built to support third parties in creating external providers of quantum resources.

This means that any organization which develops or deploys quantum compute resources can integrate their services into Qiskit and tap into its userbase.
This means that any organization which develops or deploys quantum compute resources can integrate their services into Qiskit and tap into its userbase.

Doing so requires creating a package which supports requests for quantum compute resources and returns them to the user.
Doing so requires creating a package which supports requests for quantum compute resources and returns them to the user.

Additionally, the package must allow users to submit jobs and retrieve their results through an implementation of the `qiskit.primitives` objects.

Expand Down Expand Up @@ -46,7 +46,7 @@ In addition to providing a service returning hardware configurations, a service

To handle job status and results, the Qiskit SDK provides a [`DataBin`](../api/qiskit/qiskit.primitives.DataBin), [`PubResult`](../api/qiskit/qiskit.primitives.PubResult), [`PrimitiveResult`](../api/qiskit/qiskit.primitives.PrimitiveResult), and [`BasePrimitiveJob`](../api/qiskit/qiskit.primitives.BasePrimitiveJob) objects should be used.

See the `qiskit.primitives` [API documentation](../api/qiskit/primitives) as well as the reference implementations [`BackendEstimatorV2`](../api/qiskit/qiskit.primitives.BackendEstimatorV2) and [`BackendSampleV2`](../api/qiskit/qiskit.primitives.BackendSampler) for more information.
See the `qiskit.primitives` [API documentation](../api/qiskit/primitives) as well as the reference implementations [`BackendEstimatorV2`](../api/qiskit/qiskit.primitives.BackendEstimatorV2) and [`BackendSampleV2`](../api/qiskit/qiskit.primitives.BackendSampler) for more information. If you created a provider that uses `backend.run`, see [Migrate provider interfaces from backend.run to primitives.](../migration-guides/external-providers-primitives-v2)

An example implementation of the Estimator primitive may look like:

Expand Down Expand Up @@ -105,8 +105,8 @@ class SamplerImplentation(BaseSamplerV2):
self._backend = backend
self._options = options
self._default_shots = 1024
@property

@property
def backend(self) -> BackendV2:
""" Return the Sampler's backend """
return self._backend
Expand All @@ -124,5 +124,5 @@ class SamplerImplentation(BaseSamplerV2):
"""
job = BasePrimitiveJob(pubs, shots)
job_with_results = job.submit()
return job_with_results
return job_with_results
```

0 comments on commit 0edf399

Please sign in to comment.