I have coded this from a tutorial:
from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit, Aer, execute
from qiskit.visualization import plot_histogram
import cirq
m_simulator = Aer.backends(name="Quantum_Simulation")
qreg = QuantumRegister(2)
creg = ClassicalRegister(2)
entangler = QuantumCircuit(qreg, creg)
entangler.h(0)
entangler.cx(0, 1)
entangler.measure(0, 0)
entangler.measure(1, 1)
entangler.draw(output="mpl")
For some reason, entangler.draw(output="mpl")
is not working. If someone can let me know why, that would be greatly appreciated. The link I am using is: https://towardsdatascience.com/what-is-quantum-entanglement-anyway-4ea97df4bb0e