From 52df93c6ec2e65f879a0216aeefbc71fef0689d4 Mon Sep 17 00:00:00 2001 From: You Quan Chong <48691403+chongyouquan@users.noreply.github.com> Date: Tue, 11 Mar 2025 16:55:12 -0700 Subject: [PATCH 1/3] change backend name to Fez --- docs/guides/q-ctrl-performance-management.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/q-ctrl-performance-management.ipynb b/docs/guides/q-ctrl-performance-management.ipynb index 5452dbdb8e2..24ea9fdc944 100644 --- a/docs/guides/q-ctrl-performance-management.ipynb +++ b/docs/guides/q-ctrl-performance-management.ipynb @@ -225,7 +225,7 @@ "\n", "service = QiskitRuntimeService()\n", "instance = service.active_account()[\"instance\"]\n", - "backend_name = service.least_busy().name" + "backend_name = \"ibm_fez\"" ] }, { From 4679d32d4ed6ff4270df7d66603f717c3d7c9c9e Mon Sep 17 00:00:00 2001 From: You Quan Chong <48691403+chongyouquan@users.noreply.github.com> Date: Wed, 12 Mar 2025 07:52:21 -0500 Subject: [PATCH 2/3] change to Torino instead --- docs/guides/q-ctrl-performance-management.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/q-ctrl-performance-management.ipynb b/docs/guides/q-ctrl-performance-management.ipynb index 24ea9fdc944..61f0616bf37 100644 --- a/docs/guides/q-ctrl-performance-management.ipynb +++ b/docs/guides/q-ctrl-performance-management.ipynb @@ -225,7 +225,7 @@ "\n", "service = QiskitRuntimeService()\n", "instance = service.active_account()[\"instance\"]\n", - "backend_name = \"ibm_fez\"" + "backend_name = \"ibm_torino\"" ] }, { From 73eecd3c9372da404dfe9515ff30e4e1bfe903c9 Mon Sep 17 00:00:00 2001 From: Frank Harkins Date: Thu, 13 Mar 2025 17:27:18 +0000 Subject: [PATCH 3/3] Minor changes to notebook --- .../q-ctrl-performance-management.ipynb | 55 +++++++++++++++++-- 1 file changed, 51 insertions(+), 4 deletions(-) diff --git a/docs/guides/q-ctrl-performance-management.ipynb b/docs/guides/q-ctrl-performance-management.ipynb index 61f0616bf37..3d2b2bf1510 100644 --- a/docs/guides/q-ctrl-performance-management.ipynb +++ b/docs/guides/q-ctrl-performance-management.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "markdown", - "id": "dde95705", + "id": "078f60a7-7919-400a-8b76-1be53dd916ae", "metadata": {}, "source": [ "# Performance Management: A Qiskit Function by Q-CTRL Fire Opal\n", @@ -19,8 +19,32 @@ "\n", "\n", "Qiskit Functions are an experimental feature available only to IBM Quantum® Premium Plan users. They are in preview release status and subject to change.\n", - "\n", - "\n", + "" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "9a2d3461-3d26-4244-a58b-9499e098cd10", + "metadata": { + "editable": true, + "slideshow": { + "slide_type": "" + }, + "tags": [ + "version-info" + ] + }, + "outputs": [], + "source": [] + }, + { + "cell_type": "markdown", + "id": "af880e35-4670-41f9-9542-9b13a2cece37", + "metadata": { + "jp-MarkdownHeadingCollapsed": true + }, + "source": [ "## Overview\n", "\n", "Fire Opal Performance Management makes it simple for anyone to achieve meaningful results from quantum computers at scale without needing to be quantum hardware experts. When running circuits with Fire Opal Performance Management, AI-driven error suppression techniques are automatically applied, enabling the scaling of larger problems with more gates and qubits. This approach reduces the number of shots required to reach the correct answer, with no added overhead — resulting in significant savings in both compute time and cost.\n", @@ -554,7 +578,8 @@ "pub_result = sampler_result[0]\n", "counts = pub_result.data.c.get_counts()\n", "\n", - "print(f\"Counts for the meas output register: {counts}\")" + "# Show a few items from the counts dictionary\n", + "list(counts.items())[:10]" ] }, { @@ -567,6 +592,28 @@ "Plot the bitstring with the highest counts to see if the hidden bitstring was the mode." ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "799a7331-c029-4d50-8819-c7fe23627d27", + "metadata": { + "editable": true, + "slideshow": { + "slide_type": "" + }, + "tags": [ + "remove-cell" + ] + }, + "outputs": [], + "source": [ + "# This cell is hidden from the user. It checks the top result is the\n", + "# hidden bitstring. This can sometimes happen if the backend is having\n", + "# a bad day.\n", + "most_common_result = max(counts.items(), key=lambda x: x[1])[0][0]\n", + "assert most_common_result == hidden_bitstring" + ] + }, { "cell_type": "code", "execution_count": 15,