Skip to content

Instantly share code, notes, and snippets.

@TheGupta2012
Last active July 31, 2023 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheGupta2012/ef1598e3b8d196ea15ade4b357a47627 to your computer and use it in GitHub Desktop.
Save TheGupta2012/ef1598e3b8d196ea15ade4b357a47627 to your computer and use it in GitHub Desktop.
CLI View for Timeline Debugger
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