diff --git a/qiskit/visualization/gate_map.py b/qiskit/visualization/gate_map.py index aaba7b825a..27459e2fc1 100644 --- a/qiskit/visualization/gate_map.py +++ b/qiskit/visualization/gate_map.py @@ -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