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/3] 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 b79d69d4300..d367fa7289c 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/3] 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 d367fa7289c..2e5419ec72f 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) From 3e9be571c81b49019ad305126583006ae17f2825 Mon Sep 17 00:00:00 2001 From: Kaelyn Ferris <43348706+kaelynj@users.noreply.github.com> Date: Wed, 30 Oct 2024 17:05:49 -0400 Subject: [PATCH 3/3] Implement code review suggestion --- docs/guides/get-started-with-primitives.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/guides/get-started-with-primitives.mdx b/docs/guides/get-started-with-primitives.mdx index 52b25dca06a..c554357aeed 100644 --- a/docs/guides/get-started-with-primitives.mdx +++ b/docs/guides/get-started-with-primitives.mdx @@ -19,6 +19,8 @@ The steps in this topic describes how to set up primitives, explore the options service = QiskitRuntimeService() fractional_gate_backend = service.least_busy(use_fractional_gates=True) ``` + + However, note that this is an experimental feature and may change in the future.