mirror of https://github.com/Qiskit/qiskit.git
fixed issue 8670 by inverting qubits_coordinates and coupling_map (#8671)
This commit is contained in:
parent
aca01eb986
commit
a4cf1483c8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue