# How to represent a statevector in Dirac notation form using Qiskit?

I am learning from qiskit textbook, and I was wondering how may I get a statevector of the following form:

$$\frac{\sqrt{2}}{2}|00\rangle + \frac{\sqrt{2}}{2}|10\rangle$$

If I run code for this in jupyter notebook then it shows completely different way to visualize this statevector. How can I represent a statevector like this?

• Just to be clear, were you only looking for the ability to display it as you have written it? Or were you also looking for how to create the state using gates so that it could be represented as shown? It might help clarify if you included your code so that we could see what you had generated with your attempt. Or perhaps a link to the textbook pages you were attempting to work through. (Unless the answer below has already answered your question. In which case, click the checkmark beside the answer to accept it.) Sep 14 at 14:24

Use draw method with output parameter set to latex
from qiskit.quantum_info import Statevector