Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make plot_gate_map generic for any backend #7814

Merged
merged 18 commits into from
Mar 31, 2022
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion qiskit/transpiler/passmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import dill

from qiskit.visualization import pass_manager_drawer
from qiskit.tools.parallel import parallel_map
from qiskit.circuit import QuantumCircuit
from .basepasses import BasePass
Expand Down Expand Up @@ -301,6 +300,8 @@ def draw(self, filename=None, style=None, raw=False):
Raises:
ImportError: when nxpd or pydot not installed.
"""
from qiskit.visualization import pass_manager_drawer

return pass_manager_drawer(self, filename=filename, style=style, raw=raw)

def passes(self) -> List[Dict[str, BasePass]]:
Expand Down
Loading