Classiq / classiq-library

The Classiq Library is the largest collection of quantum algorithms and applications. It is the best way to explore quantum computing software. We welcome community contributions to our Library 🙌
https://platform.classiq.io
MIT License
327 stars 290 forks source link

Change the Latex use of `\ket{-}` to `|-\rangle` in the phase kickback tutorial #38

Open EdenSchirmanClassiq opened 4 months ago

EdenSchirmanClassiq commented 4 months ago

In Jupyter notebooks there is the option to write with Latex in the .md cells. This is very convenient as it allows writing mathemtical expressions in a nice format, e.g. $|\psi \rangle = |0\rangle $. These notebooks are the source for the Classiq documentation. The problem is that for some mathematical expressions written in Latex, the documentation isn't rendered properly. This is the case for the use of \ket{} that is used to represent a ket notation $\ket{}$.

The goal of this issue is to solve this problem for the phase kickback tutorial. That is, to change all the appearances of \ket{} to | followed by \rangle. When rendered in the Jupyter notebook both look the same, but within the corresponding documentation it makes a huge difference.

Please follow the contribution guidelines and adapt the phase_kickback.ipynb notebook so it will contain the correct logic of the ket notation but with the use of | and \rangle instead of \ket{}.