I am new to Qiskit and was learning Quantum teleportation circuit on youtube. I unknowingly executed a cell while trying to modify the circuit draw style which added the unnecessary gates. How can I remove them?
circuit.h(1) circuit.cnot(1, 2) circuit.draw(output="mpl")
This was the cell which I executed again. I want to remove the gates after the second hadamard.