Using quantum computing to design a more precise, environmental friendly and robust water distribution network and debugging.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file qatrah-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: qatrah-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81870b9bce9b8f857cae56e7b1f572034aaed6e9f95f162091095a39ac46801f |
|
MD5 | c71628d5c334c53b96c91a146c008fa1 |
|
BLAKE2b-256 | 08871335321bb2adb690c673d0ef4395447f6565fc4d2a13c1f31469a77b2c17 |