From 1ace51307b615fec7dedd653037f04fe9023b0f9 Mon Sep 17 00:00:00 2001 From: Luciano Bello Date: Tue, 9 May 2023 22:56:22 +0200 Subject: [PATCH] Add the `qubit_coordinates_map` for `ibm_seattle` (#10089) * add ibm_seattle qubit_coordinates_map * Update releasenotes/notes/433_qubit_coordinates_map-8abc318fefdb99ac.yaml Co-authored-by: Kevin Krsulich --------- Co-authored-by: Kevin Krsulich (cherry picked from commit 7a215f97c4f6155795490a24691d22ac89449b96) --- qiskit/visualization/gate_map.py | 436 ++++++++++++++++++ ...ubit_coordinates_map-8abc318fefdb99ac.yaml | 4 + 2 files changed, 440 insertions(+) create mode 100644 releasenotes/notes/433_qubit_coordinates_map-8abc318fefdb99ac.yaml diff --git a/qiskit/visualization/gate_map.py b/qiskit/visualization/gate_map.py index da270e8b0718..86a3fbe9f858 100644 --- a/qiskit/visualization/gate_map.py +++ b/qiskit/visualization/gate_map.py @@ -474,6 +474,442 @@ def plot_gate_map( [12, 14], ] + qubit_coordinates_map[433] = [ + [0, 0], + [0, 1], + [0, 2], + [0, 3], + [0, 4], + [0, 5], + [0, 6], + [0, 7], + [0, 8], + [0, 9], + [0, 10], + [0, 11], + [0, 12], + [0, 13], + [0, 14], + [0, 15], + [0, 16], + [0, 17], + [0, 18], + [0, 19], + [0, 20], + [0, 21], + [0, 22], + [0, 23], + [0, 24], + [0, 25], + [1, 0], + [1, 4], + [1, 8], + [1, 12], + [1, 16], + [1, 20], + [1, 24], + [2, 0], + [2, 1], + [2, 2], + [2, 3], + [2, 4], + [2, 5], + [2, 6], + [2, 7], + [2, 8], + [2, 9], + [2, 10], + [2, 11], + [2, 12], + [2, 13], + [2, 14], + [2, 15], + [2, 16], + [2, 17], + [2, 18], + [2, 19], + [2, 20], + [2, 21], + [2, 22], + [2, 23], + [2, 24], + [2, 25], + [2, 26], + [3, 2], + [3, 6], + [3, 10], + [3, 14], + [3, 18], + [3, 22], + [3, 26], + [4, 0], + [4, 1], + [4, 2], + [4, 3], + [4, 4], + [4, 5], + [4, 6], + [4, 7], + [4, 8], + [4, 9], + [4, 10], + [4, 11], + [4, 12], + [4, 13], + [4, 14], + [4, 15], + [4, 16], + [4, 17], + [4, 18], + [4, 19], + [4, 20], + [4, 21], + [4, 22], + [4, 23], + [4, 24], + [4, 25], + [4, 26], + [5, 0], + [5, 4], + [5, 8], + [5, 12], + [5, 16], + [5, 20], + [5, 24], + [6, 0], + [6, 1], + [6, 2], + [6, 3], + [6, 4], + [6, 5], + [6, 6], + [6, 7], + [6, 8], + [6, 9], + [6, 10], + [6, 11], + [6, 12], + [6, 13], + [6, 14], + [6, 15], + [6, 16], + [6, 17], + [6, 18], + [6, 19], + [6, 20], + [6, 21], + [6, 22], + [6, 23], + [6, 24], + [6, 25], + [6, 26], + [7, 2], + [7, 6], + [7, 10], + [7, 14], + [7, 18], + [7, 22], + [7, 26], + [8, 0], + [8, 1], + [8, 2], + [8, 3], + [8, 4], + [8, 5], + [8, 6], + [8, 7], + [8, 8], + [8, 9], + [8, 10], + [8, 11], + [8, 12], + [8, 13], + [8, 14], + [8, 15], + [8, 16], + [8, 17], + [8, 18], + [8, 19], + [8, 20], + [8, 21], + [8, 22], + [8, 23], + [8, 24], + [8, 25], + [8, 26], + [9, 0], + [9, 4], + [9, 8], + [9, 12], + [9, 16], + [9, 20], + [9, 24], + [10, 0], + [10, 1], + [10, 2], + [10, 3], + [10, 4], + [10, 5], + [10, 6], + [10, 7], + [10, 8], + [10, 9], + [10, 10], + [10, 11], + [10, 12], + [10, 13], + [10, 14], + [10, 15], + [10, 16], + [10, 17], + [10, 18], + [10, 19], + [10, 20], + [10, 21], + [10, 22], + [10, 23], + [10, 24], + [10, 25], + [10, 26], + [11, 2], + [11, 6], + [11, 10], + [11, 14], + [11, 18], + [11, 22], + [11, 26], + [12, 0], + [12, 1], + [12, 2], + [12, 3], + [12, 4], + [12, 5], + [12, 6], + [12, 7], + [12, 8], + [12, 9], + [12, 10], + [12, 11], + [12, 12], + [12, 13], + [12, 14], + [12, 15], + [12, 16], + [12, 17], + [12, 18], + [12, 19], + [12, 20], + [12, 21], + [12, 22], + [12, 23], + [12, 24], + [12, 25], + [12, 26], + [13, 0], + [13, 4], + [13, 8], + [13, 12], + [13, 16], + [13, 20], + [13, 24], + [14, 0], + [14, 1], + [14, 2], + [14, 3], + [14, 4], + [14, 5], + [14, 6], + [14, 7], + [14, 8], + [14, 9], + [14, 10], + [14, 11], + [14, 12], + [14, 13], + [14, 14], + [14, 15], + [14, 16], + [14, 17], + [14, 18], + [14, 19], + [14, 20], + [14, 21], + [14, 22], + [14, 23], + [14, 24], + [14, 25], + [14, 26], + [15, 2], + [15, 6], + [15, 10], + [15, 14], + [15, 18], + [15, 22], + [15, 26], + [16, 0], + [16, 1], + [16, 2], + [16, 3], + [16, 4], + [16, 5], + [16, 6], + [16, 7], + [16, 8], + [16, 9], + [16, 10], + [16, 11], + [16, 12], + [16, 13], + [16, 14], + [16, 15], + [16, 16], + [16, 17], + [16, 18], + [16, 19], + [16, 20], + [16, 21], + [16, 22], + [16, 23], + [16, 24], + [16, 25], + [16, 26], + [17, 0], + [17, 4], + [17, 8], + [17, 12], + [17, 16], + [17, 20], + [17, 24], + [18, 0], + [18, 1], + [18, 2], + [18, 3], + [18, 4], + [18, 5], + [18, 6], + [18, 7], + [18, 8], + [18, 9], + [18, 10], + [18, 11], + [18, 12], + [18, 13], + [18, 14], + [18, 15], + [18, 16], + [18, 17], + [18, 18], + [18, 19], + [18, 20], + [18, 21], + [18, 22], + [18, 23], + [18, 24], + [18, 25], + [18, 26], + [19, 2], + [19, 6], + [19, 10], + [19, 14], + [19, 18], + [19, 22], + [19, 26], + [20, 0], + [20, 1], + [20, 2], + [20, 3], + [20, 4], + [20, 5], + [20, 6], + [20, 7], + [20, 8], + [20, 9], + [20, 10], + [20, 11], + [20, 12], + [20, 13], + [20, 14], + [20, 15], + [20, 16], + [20, 17], + [20, 18], + [20, 19], + [20, 20], + [20, 21], + [20, 22], + [20, 23], + [20, 24], + [20, 25], + [20, 26], + [21, 0], + [21, 4], + [21, 8], + [21, 12], + [21, 16], + [21, 20], + [21, 24], + [22, 0], + [22, 1], + [22, 2], + [22, 3], + [22, 4], + [22, 5], + [22, 6], + [22, 7], + [22, 8], + [22, 9], + [22, 10], + [22, 11], + [22, 12], + [22, 13], + [22, 14], + [22, 15], + [22, 16], + [22, 17], + [22, 18], + [22, 19], + [22, 20], + [22, 21], + [22, 22], + [22, 23], + [22, 24], + [22, 25], + [22, 26], + [23, 2], + [23, 6], + [23, 10], + [23, 14], + [23, 18], + [23, 22], + [23, 26], + [24, 1], + [24, 2], + [24, 3], + [24, 4], + [24, 5], + [24, 6], + [24, 7], + [24, 8], + [24, 9], + [24, 10], + [24, 11], + [24, 12], + [24, 13], + [24, 14], + [24, 15], + [24, 16], + [24, 17], + [24, 18], + [24, 19], + [24, 20], + [24, 21], + [24, 22], + [24, 23], + [24, 24], + [24, 25], + [24, 26], + ] + backend_version = _get_backend_interface_version(backend) if backend_version <= 1: from qiskit.transpiler.coupling import CouplingMap diff --git a/releasenotes/notes/433_qubit_coordinates_map-8abc318fefdb99ac.yaml b/releasenotes/notes/433_qubit_coordinates_map-8abc318fefdb99ac.yaml new file mode 100644 index 000000000000..ede523105e6c --- /dev/null +++ b/releasenotes/notes/433_qubit_coordinates_map-8abc318fefdb99ac.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - | + Updated :func:`~qiskit.visualization.plot_gate_map`, :func:`~qiskit.visualization.plot_error_map`, and :func:`~qiskit.visualization.plot_circuit_layout` to support 433 qubit heavy-hex coupling maps. This allows coupling map visualizations for IBM's ``ibm_seattle``.