Skip to content

Instantly share code, notes, and snippets.

View TheGupta2012's full-sized avatar
🚀
Working

Harshit Gupta TheGupta2012

🚀
Working
View GitHub Profile
@TheGupta2012
TheGupta2012 / cli-view.py
Last active July 31, 2023 18:00
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)
@TheGupta2012
TheGupta2012 / jupyter_view.py
Created July 31, 2023 17:53
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)
/* Deleting a node from Binary search tree */
#include<iostream>
using namespace std;
struct Node {
int data;
struct Node *left;
struct Node *right;
};
//Function to find minimum in a tree.
Node* FindMin(Node* root)