Last active
July 31, 2023 18:00
-
-
Save TheGupta2012/ef1598e3b8d196ea15ade4b357a47627 to your computer and use it in GitHub Desktop.
CLI View for Timeline Debugger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from qiskit.providers.fake_provider import FakeCasablanca | |
from qiskit.circuit.random import random_circuit | |
from qiskit_trebugger import Debugger | |
import warnings | |
warnings.simplefilter('ignore') | |
debugger = Debugger(view_type = "cli") | |
backend = FakeCasablanca() | |
circuit = random_circuit(num_qubits = 4, depth = 5 , seed = 44) | |
# replace qiskit's transpile call | |
debugger.debug(circuit, optimization_level = 2, backend = backend) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment