Skip to content

Commit

Permalink
fixed issue 8670 by inverting qubits_coordinates and coupling_map (Qi…
Browse files Browse the repository at this point in the history
  • Loading branch information
dalin27 authored and ewinston committed Sep 8, 2022
1 parent cd9c5cf commit 879f7ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qiskit/visualization/gate_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,9 +595,9 @@ def plot_coupling_map(
%matplotlib inline
num_qubits = 8
coupling_map = [[0, 1], [1, 2], [2, 3], [3, 5], [4, 5], [5, 6], [2, 4], [6, 7]]
qubit_coordinates = [[0, 1], [1, 1], [1, 0], [1, 2], [2, 0], [2, 2], [2, 1], [3, 1]]
plot_coupling_map(num_qubits, coupling_map, qubit_coordinates)
coupling_map = [[0, 1], [1, 2], [2, 3], [3, 5], [4, 5], [5, 6], [2, 4], [6, 7]]
plot_coupling_map(num_qubits, qubit_coordinates, coupling_map)
"""
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
Expand Down

0 comments on commit 879f7ba

Please sign in to comment.