From 1c66b9cd286978626ff4ebcbc0e8d8a04c478b36 Mon Sep 17 00:00:00 2001 From: Toshinari Itoko Date: Wed, 27 Mar 2024 10:58:01 +0900 Subject: [PATCH 1/3] Add standard gate error ratio for ECR gate --- .../library/randomized_benchmarking/rb_analysis.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qiskit_experiments/library/randomized_benchmarking/rb_analysis.py b/qiskit_experiments/library/randomized_benchmarking/rb_analysis.py index 6670934c94..42d1d1f938 100644 --- a/qiskit_experiments/library/randomized_benchmarking/rb_analysis.py +++ b/qiskit_experiments/library/randomized_benchmarking/rb_analysis.py @@ -324,6 +324,7 @@ def _lookup_epg_ratio(gate: str, n_qubits: int) -> Union[None, int]: "cy": 1.0, "cz": 1.0, "ch": 1.0, + "ecr": 1.0, "crx": 2.0, "cry": 2.0, "crz": 2.0, From 6513dd24e9b8606f94676da2e6c13a279d68486f Mon Sep 17 00:00:00 2001 From: Toshinari Itoko Date: Wed, 27 Mar 2024 10:59:39 +0900 Subject: [PATCH 2/3] Add a sentence to explain how to skip EPG computation in RB manual --- docs/manuals/verification/randomized_benchmarking.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/manuals/verification/randomized_benchmarking.rst b/docs/manuals/verification/randomized_benchmarking.rst index e0c6190e11..a955d909ae 100644 --- a/docs/manuals/verification/randomized_benchmarking.rst +++ b/docs/manuals/verification/randomized_benchmarking.rst @@ -208,6 +208,8 @@ The EPGs of two-qubit RB are analyzed with the corrected EPC if available. Note that ``EPC_corrected`` value is smaller than one of raw ``EPC``, which indicates contribution of depolarization from single-qubit error channels. +If you don't need ``EPG`` value, you can skip its computation by +``exp_2q.analysis.set_options(gate_error_ratio=False)``. Displaying the RB circuits From b6b54a07d73a964981f209a0332fe97ce046c80f Mon Sep 17 00:00:00 2001 From: Toshinari Itoko Date: Wed, 27 Mar 2024 14:43:29 +0900 Subject: [PATCH 3/3] Add release note --- releasenotes/notes/fix-ecr-epg-59c8db98494966b0.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 releasenotes/notes/fix-ecr-epg-59c8db98494966b0.yaml diff --git a/releasenotes/notes/fix-ecr-epg-59c8db98494966b0.yaml b/releasenotes/notes/fix-ecr-epg-59c8db98494966b0.yaml new file mode 100644 index 0000000000..ce78428727 --- /dev/null +++ b/releasenotes/notes/fix-ecr-epg-59c8db98494966b0.yaml @@ -0,0 +1,10 @@ +--- +fixes: + - | + Fixed a bug in EPG (error per gate) computation in :class:`~.RBAnalysis` + where it fails with a ``TypeError`` for backends with ECR gate + as a 2-qubit basis gate (e.g. IBM Eagle processors). + See + `#1419 + `_. + for the details of the bug.