Classiq / classiq-library

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

Classiq Basics: Quantum Entanglement #28

Closed amir-naveh closed 1 month ago

amir-naveh commented 2 months ago

In this issue, we will create a simple tutorial of quantum entanglement using Classiq. This tutorial should follow the structure of the quantum superpostion tutorial:
To complete this issue, follow these steps:

  1. Create a new jupyter notebook (.ipynb file). Use any jupyter editor (e.g. jupyter lab, google colab, etc).
  2. Use Classiq's SDK to create the bell state: $|\psi\rangle = \frac{1}{\sqrt{2}} (|00\rangle + |11\rangle) $. To do this, apply a $H$ (Hadamard) gate to one qubit, and then apply a $CX$ gate controlled on the qubit in superposition.
  3. Similar to the superposition notebook, create a short mathematical explanation of the work. Jupyter notebooks support markdown cells, which can contain LaTeX. You can view the source or the superposition notebook to see how this is done. Chat GPT is an excellent LaTeX assistant.
  4. After creating the notebook, make sure you insert the write_qmod(model, "bell_state.qmod") line. Run the notebook, and you will automatically generate the .qmod file for this example.
  5. Make sure the notebook looks well, does not have any typos / mistakes, and is running properly.
  6. Follow the contribution guidelines to open a pull request. Submit the tutorial to the directory: classiq-library/community/basic_examples/entanglement

If you have any questions or comments, you can ask them here in the issue, or in our slack community, and the Classiq team will be happy to assist.

Happy quantum coding!

maxaakashshinde commented 1 month ago

I can work on this issue would it be able to assign it to me?

mahnoor04 commented 1 month ago

Has this issue been assigned?

jyotiraj-code commented 1 month ago

Hi @amir-naveh I have issued a PR #126 which will close this issue for the UnitaryHack 2024 event

The PR includes:

It is taken into consideration the PR doesn't have any typo and solves the issue #28 with the proper guidelines and methods as mentioned.

It was good to work on this issue.

amir-naveh commented 1 month ago

Hi @jyotiraj-code , thanks for this PR! I will now review, and continue the discussion in the PR.

amir-naveh commented 1 month ago

Approved and closed, thank you!