qml icon indicating copy to clipboard operation
qml copied to clipboard

[DEMO]Matrix multiplication with compressed gadget

Open sassan72 opened this issue 6 months ago • 4 comments

General information

Sasan Moradi Sasan Moradi (or username).

Affiliation (optional) University of Vienna, if applicable; e.g. University, research institute, company.

Twitter (optional) Your Twitter username, if interested; helps us advertise your demo while linking directly back to you.

Image (optional) Suggested image to use when advertising your demo on Twitter; can be provided via hyperlink or by copy/pasting directly in GitHub.


Demo information

Matrix multiplication with compressed gadget The title of your demo.

Abstract Quantum computers can perform matrix-matrix multiplication using methods like the duplicate ancilla qubits technique, which requires a linear increase in ancilla qubits and swap gates with the number of multiplications, making it inefficient for non-unitary matrices. An alternative, more efficient approach is the compression gadget, which needs only a logarithmic number of additional ancilla qubits.

Relevant links https://github.com/sassan72/Matrix-Multiplication

sassan72 avatar May 12 '25 16:05 sassan72

Thanks for opening this issue! Could you please take a look at the Community Demo guidelines and add anything you might be missing? For example it's important to have a README in the repository and add explanation to your notebook so that people can understand what's going on in the code. You can take inspiration from the way PennyLane demos are written! This will make it much more usable for others in the future.

CatalinaAlbornoz avatar May 13 '25 21:05 CatalinaAlbornoz

Thanks Catalina. I will do it.

sassan72 avatar May 21 '25 12:05 sassan72

I uploaded a PDF file which explain the method of compressed gadget.

sassan72 avatar May 21 '25 13:05 sassan72

The pdf was a great idea @sassan72 !

In addition to the pdf it's important that the README mentions what the code is (1-2 lines at least), what libraries are used, and what versions of the libraries you used.

Please also make sure to include comments and explanations in your code. The goal is that your reader can independently use and understand your work. Note that in Jupyter notebooks you can add text cells. This can be a great way to add explanations.

CatalinaAlbornoz avatar May 22 '25 19:05 CatalinaAlbornoz