fixed issue 8670 by inverting qubits_coordinates and coupling_map (#8671)

This commit is contained in:
dalin27 2022-09-05 05:02:11 +03:00 committed by GitHub
parent aca01eb986
commit a4cf1483c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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