Skip to content

Instantly share code, notes, and snippets.

@TheGupta2012
Created July 31, 2023 17:53
Show Gist options
  • Save TheGupta2012/9212cc5f306cd2c54822ccb9cff40981 to your computer and use it in GitHub Desktop.
Save TheGupta2012/9212cc5f306cd2c54822ccb9cff40981 to your computer and use it in GitHub Desktop.
Jupyter 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 = "jupyter")
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