QatraH | <قطرة> (Droplet)¶
https://nyuad.nyu.edu/en/events/2023/april/nyuad-hackathon-event.html
Motivation¶
Solving quantum solution for water based distibution and debugging using quantum computing. Buzz words: WDN, Quantum Computing, QUBO, QML, Optimization
Quantum algorithm:¶
Variational Quantum Eigensolver (VQE)
Quantum Approximate Optimization Algorithm (QAOA)
Quantum Machine Optimization Algorithm
Quantum Machine Learning
Installation Instructions:¶
Requirements:
pip3 -r int
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:
- Mentors:
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.
Detailed Documentation¶
Contents:
- Debugging module
- Magnetohydrosensor module
- Optimization placement module
SensorPlacementSensorPlacementResultsadd_attributes()convert_oopnet_junctions_to_df()convert_oopnet_nodes_to_df()convert_oopnet_pipes_to_df()create_edge_weight()create_graph()diameter_length_factor()drop_y()generate_accessibility_factor()generate_centrality_factor()get_df_from_oopnet_nodes()plot_network()rename_x()