QatraH | قطرة | (Droplet)
Using quantum computing to design a more precise, environmental friendly and robust water distribution network and debugging.
NYUAD Hackathon for Social Good in the Arab World: Focusing on Quantum Computing (QC) and UN Sustainable Development Goals (SDGs).
https://nyuad.nyu.edu/en/events/2023/april/nyuad-hackathon-event.html
Presentation
The Slides can be viewed at information.
Motivation
Solving quantum solution for water based distibution and debugging using quantum computing. Buzz words: WDN, Quantum Computing, QUBO, QML, Optimization, Pennylane, Jax
Quantum algorithm:
- Variational Quantum Eigensolver (VQE)
- Quantum Approximate Optimization Algorithm (QAOA)
- Quantum Machine Optimization Algorithm
- Quantum Machine Learning on Graph
Installation Instructions: Requirements: pip3 install -r requirements.txt
*Conda users, please make sure to conda install pip and use it for the above requirements.
Input to the program:
- Sensor readings
- Paths from source to sensor
- Dataset of the water sample like from DEWA site under paywall
Replacing Classical Pressure Sensors with Optimized Quantum Sensors
Compared to classical pressure sensors, quantum sensors are not invasive. They are also tolerant to the changes in the environment around it while also being more accurate. This improves the ability to detect pipe leakage.
Leak Detection and Localization
Leakage in water distribution systems has been a challenge for water management committees. The real-life data collected from the optimal placed sensors, can be used to predict and localise leakage by identifying the deviations of pressure in the network. This task can be done both using QUBO and Quantum Machine Learning based models.
Using Quantum Machine Learning
Existing classical literature, suggests the use of machine learning to predict leakage and localise it to a particular pipe using the data from pressure sensors in the WDN at any given point of time. We attempt to solve the same using a quantum machine learning based model.
Specifically, we collect the pressure data from the optimally-placed sensors in a water distribution network to predict leakage in the WDN using a quantum neural network. It is implemented in the Pennylane framework using Jax. The data is fed into the model using Angle encoding. The model is composed of a parametrised quantum circuit with RY, RZ and CNOT gates which are trained over a total of 500 epochs. We use a train to test-set ratio of 4:1 and optimise the model using Rectified adam over the binary cross-entropy loss. At the end we obtain a test accuracy of 87.02% over the dataset of size 650.
Acknowledgements
Hackers: Anas, Basant, Mohammed, Airin, Lakshika, Sanjana, Selin Doga, Yaser
Mentors: Fouad, El Amine, Victory Omole, Akash Kant
And thank you to the oragnising committee of NYUAD 2023 Hackathon https://nyuad.nyu.edu/en/events/2023/april/nyuad-hackathon-event.html and Qbraid and other student who made it possible and great.
Metadata
Release files for qatrah 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qatrah-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for qatrah-0.1.1-py3-none-any.whl |
Release files / qatrah-0.1.1-py3-none-any.whl
| Download URL | qatrah-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81870b9bce9b8f857cae56e7b1f572034aaed6e9f95f162091095a39ac46801f
|
|
BLAKE2b-256 checksum How to use checksums |
08871335321bb2adb690c673d0ef4395447f6565fc4d2a13c1f31469a77b2c17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.7
|
Security for qatrah 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.