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