Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug in EPG computation for devices with ECR gates #1431

Merged
merged 3 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/manuals/verification/randomized_benchmarking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
10 changes: 10 additions & 0 deletions releasenotes/notes/fix-ecr-epg-59c8db98494966b0.yaml
Original file line number Diff line number Diff line change
@@ -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
<https://github.com/Qiskit-Extensions/qiskit-experiments/pull/1419>`_.
for the details of the bug.