PennyLaneAI / qml

Introductions to key concepts in quantum programming, as well as tutorials and implementations from cutting-edge quantum computing research.
https://pennylane.ai/qml
Apache License 2.0
517 stars 183 forks source link

[DEMO] Quantum multilabel classification with JAX #1096

Closed poporubeus closed 2 months ago

poporubeus commented 2 months ago

General information

Name Francesco Aldo Venturelli (poporubeus).

Affiliation University of Florence.


Demo information

Title Quantum multilabel classification with JAX

Abstract Quantum convolutional neural network (QCNN) for multilabel image classification written by combining Pennylane with JAX. In this simple tutorial we select four different classes of digits images from the sklearn.datasets.load_digits and we construct a quantum convolutional neural network to train and make the classification of multiclass images. After model training, we select the last updated and optimal parameters (which correspond to the maximum value of the validation accuracy) and use them to test the model on the unseen test images. To have an idea about all the steps needed to complete the experiment we recommend to have a look at the scripts in the /src folder. Hope this could be useful for you, feel free to use these codes and make further improvements. With this code we would like to emphasize the ability of making multilabel classification and stop of being constrained by binary classifications!

Relevant links https://github.com/poporubeus/quantum_machine_learning/tree/main/multilabel_classification/tutorial

poporubeus commented 2 months ago

I submit this simple tutorial on multilabel classification using a QCNN combining Pennylane and JAX together.

ikurecic commented 2 months ago

Thanks a lot for the submission, @poporubeus ! Could I ask you to add a couple more short comments in the Notebook to explain what you're doing and concluding, in the second half? That would be fantastic.

poporubeus commented 2 months ago

Of course, Thanks for replying. I'll do my best to update any comments.


Da: Ivana Kurečić @.> Inviato: mercoledì 8 maggio 2024 15:53 A: PennyLaneAI/qml @.> Cc: Francesco Aldo Venturelli - @. @.>; Mention @.***> Oggetto: Re: [PennyLaneAI/qml] [DEMO] Quantum multilabel classification with JAX (Issue #1096)

Thanks a lot for the submission, @poporubeushttps://github.com/poporubeus ! Could I ask you to add a couple more short comments in the Notebook to explain what you're doing and concluding, in the second half? That would be fantastic.

— Reply to this email directly, view it on GitHubhttps://github.com/PennyLaneAI/qml/issues/1096#issuecomment-2100632254, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWIPNMJJ57BECOZL4AQZ4LTZBIU5TAVCNFSM6AAAAABHLZ24SSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBQGYZTEMRVGQ. You are receiving this because you were mentioned.Message ID: @.***>

poporubeus commented 2 months ago

I have added more comments on the .ipynb. Let me know if they are sufficient. Thanks in advance.

CatalinaAlbornoz commented 2 months ago

Thanks @poporubeus! We'll do another round of review and keep you updated. This may take a few days.

ikurecic commented 2 months ago

Thanks a lot for making the updates, @poporubeus , this is great to see — thanks so much for sharing your code!

You'll be able to already see your demo linked on the PennyLane website today or tomorrow, and we will also post it on social media later on. Congrats! ☺

poporubeus commented 2 months ago

Thank you so much. You are a super and dynamic community, and thanks for being so and for giving a constant support. Thanks 😃, It's a pleasure. FAV.

Inviato da Outlook per iOShttps://aka.ms/o0ukef


Da: Ivana Kurečić @.> Inviato: Friday, May 10, 2024 1:09:59 PM A: PennyLaneAI/qml @.> Cc: Francesco Aldo Venturelli - @. @.>; Mention @.***> Oggetto: Re: [PennyLaneAI/qml] [DEMO] Quantum multilabel classification with JAX (Issue #1096)

Thanks a lot for making the updates, @poporubeushttps://github.com/poporubeus , this is great to see — thanks so much for sharing your code!

You'll be able to already see your demo linked on the PennyLane websitehttps://pennylane.ai/qml/demos_community/ today or tomorrow, and we will also post it on social media later on. Congrats! ☺

— Reply to this email directly, view it on GitHubhttps://github.com/PennyLaneAI/qml/issues/1096#issuecomment-2104419974, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWIPNMOF3BPTCKCTC7WSB6LZBSTIPAVCNFSM6AAAAABHLZ24SSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBUGQYTSOJXGQ. You are receiving this because you were mentioned.Message ID: @.***>

ikurecic commented 2 months ago

Hi @poporubeus , thank you so much for your kind words. :)

I just wanted to quickly follow up to ask you if you'd like our Marketing Team to tag your LinkedIn account (or Twitter account) in a social media post. If that would be fine, please go ahead and share the link with me.

Thank you!

poporubeus commented 2 months ago

Good morning @ivana, that would be awesome! Thank you so much for this opportunity. This is my LinedIn account: https://www.linkedin.com/in/francesco-aldo-venturelli-ab5721294/

Thank you, Kind regards.

FAV.


Da: Ivana Kurečić @.> Inviato: lunedì 13 maggio 2024 11:36 A: PennyLaneAI/qml @.> Cc: Francesco Aldo Venturelli - @. @.>; Mention @.***> Oggetto: Re: [PennyLaneAI/qml] [DEMO] Quantum multilabel classification with JAX (Issue #1096)

Hi @poporubeushttps://github.com/poporubeus , thank you so much for your kind words. :)

I just wanted to quickly follow up to ask you if you'd like our Marketing Team to tag your LinkedIn account (or Twitter account) in a social media post. If that would be fine, please go ahead and share the link with me.

Thank you!

— Reply to this email directly, view it on GitHubhttps://github.com/PennyLaneAI/qml/issues/1096#issuecomment-2107103143, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWIPNMLNXIS3EKJYSD2FRQTZCCCTLAVCNFSM6AAAAABHLZ24SSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBXGEYDGMJUGM. You are receiving this because you were mentioned.Message ID: @.***>