Here is my basic code
from qiskit import QuantumCircuit, execute, Aer, transpile, assemble
from qiskit.visualization import plot_histogram, plot_bloch_multivector, array_to_latex
from numpy.random import randint
import numpy as np
print("Imports Successful")
def create_Entangled(qc):
qc.h(0) #H-gate to the first
qc.cx(0,1) #CNOT to the second
display(qc.draw(output='mpl'))
#Doublecheck that the bits are entangled through statevector
backend = Aer.get_backend('statevector_simulator')
job = execute(qc, backend=backend, shots=1, memory=True)
job_result = job.result()
final_state = job_result.get_statevector()
array_to_latex(final_state, prefix="\\text{Statevector = }")
print(final_state)
qc = QuantumCircuit(2)
create_Entangled(qc)
I get the circuit drawn and I can see the "print" of the Statevector, but array_to_latex does not seem to produce anything!