From 802da213b5c5a05973696a574fdd339067b2ffed Mon Sep 17 00:00:00 2001 From: Kaelyn Ferris <43348706+kaelynj@users.noreply.github.com> Date: Thu, 18 Jul 2024 12:33:48 -0400 Subject: [PATCH 1/2] Add note about setting fractional gates flag --- docs/guides/get-started-with-primitives.mdx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/guides/get-started-with-primitives.mdx b/docs/guides/get-started-with-primitives.mdx index b79d69d430..d367fa7289 100644 --- a/docs/guides/get-started-with-primitives.mdx +++ b/docs/guides/get-started-with-primitives.mdx @@ -23,6 +23,15 @@ service = QiskitRuntimeService(channel="ibm_cloud", channel_strategy="q-ctrl") While this documentation uses the primitives from Qiskit Runtime, which allow you to use IBM® backends, the primitives can be run on any provider by using the [backend primitives](#backend) instead. Additionally, you can use the *reference* primitives to run on a local statevector simulator. See [Exact simulation with Qiskit primitives](simulate-with-qiskit-sdk-primitives) for details. + + + If you wish to use the newly supported [fractional gates](fractional-gates), you will need to set `use_fractional_gates=True` when requesting a backend from a `QiskitRuntimeService` instance. For example: + ``` python + service = QiskitRuntimeService() + fractional_gate_backend = service.least_busy(use_fractional_gates=True) + ``` + + ## Get started with Estimator From 89c3ecd4cb494a166b027a3adbe2522229e74296 Mon Sep 17 00:00:00 2001 From: Kaelyn Ferris <43348706+kaelynj@users.noreply.github.com> Date: Mon, 22 Jul 2024 10:22:21 -0400 Subject: [PATCH 2/2] Sommit suggestion from @Eric-Arellano Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com> --- docs/guides/get-started-with-primitives.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/get-started-with-primitives.mdx b/docs/guides/get-started-with-primitives.mdx index d367fa7289..2e5419ec72 100644 --- a/docs/guides/get-started-with-primitives.mdx +++ b/docs/guides/get-started-with-primitives.mdx @@ -25,7 +25,7 @@ service = QiskitRuntimeService(channel="ibm_cloud", channel_strategy="q-ctrl") - If you wish to use the newly supported [fractional gates](fractional-gates), you will need to set `use_fractional_gates=True` when requesting a backend from a `QiskitRuntimeService` instance. For example: + If you wish to use the newly supported [fractional gates](./fractional-gates), you will need to set `use_fractional_gates=True` when requesting a backend from a `QiskitRuntimeService` instance. For example: ``` python service = QiskitRuntimeService() fractional_gate_backend = service.least_busy(use_fractional_gates=True)