From 0edf39966c10cf8590800f3fc9dea0d0e3e226d6 Mon Sep 17 00:00:00 2001 From: Rebecca Dimock Date: Tue, 17 Dec 2024 12:37:22 -0600 Subject: [PATCH] add link --- docs/open-source/create-a-provider.mdx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/open-source/create-a-provider.mdx b/docs/open-source/create-a-provider.mdx index 28a2b8b15c0..7b3a5220845 100644 --- a/docs/open-source/create-a-provider.mdx +++ b/docs/open-source/create-a-provider.mdx @@ -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. @@ -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: @@ -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 @@ -124,5 +124,5 @@ class SamplerImplentation(BaseSamplerV2): """ job = BasePrimitiveJob(pubs, shots) job_with_results = job.submit() - return job_with_results + return job_with_results ``` \ No newline at end of file