Published in IEEE | Amrita Vishwa Vidyapeetham, Coimbatore
This paper proposes a novel quantum encryption scheme combining Quantum Fourier Transform (QFT), Taylor Series, and quantum gates to establish a secure, key-based encryption and decryption pipeline. The scheme is designed to enable privacy-preserving machine learning and federated learning by performing computations directly on encrypted data using CKKS-based Homomorphic Encryption.
The proposed approach achieves identical accuracy on encrypted vs plaintext inference β 96.60% accuracy on a 2000-sample diabetes dataset β demonstrating that secure computation does not compromise model performance.
Classical Data
β
βΌ
Ry Gates (encode data into quantum states)
β
βΌ
Quantum Fourier Transform (QFT) β domain transformation
β
βΌ
Rz Gates (public key β Euler phase shifts)
β
βΌ
Rx Gates (secret signal embedding from Taylor series)
β
βΌ
Encrypted Quantum State β Measurement (1024 shots)
β
βΌ
Inverse QFT + Remove Taylor signal β Decrypted State
Quantum-Encryption-QFT-Taylor/
βββ README.md
βββ requirements.txt
βββ src/
β βββ ckks_encryption.py # CKKS scheme with TenSEAL
β βββ quantum_circuit.py # QFT + gate-based encryption circuit
β βββ taylor_keygen.py # Taylor series private key generation
β βββ homomorphic_inference.py # Encrypted model inference
β βββ evaluate.py # Accuracy comparison: plaintext vs encrypted
βββ notebooks/
β βββ Quantum_Encryption_Demo.ipynb
βββ results/
β βββ encrypted_state_distribution.png
β βββ decrypted_state_distribution.png
β βββ classification_report.txt
βββ images/
β βββ quantum_circuit_diagram.png
βββ LICENSE
| Parameter | Value |
|---|---|
| Scheme | CKKS (Cheon-Kim-Kim-Song) |
| Poly Modulus Degree | 8192 |
| Coeff Mod Bit Sizes | [60, 40, 40, 60] |
| Global Scale | 2^40 |
| Library | TenSEAL (Python) |
- Supports approximate arithmetic on encrypted real-valued data
- Galois keys generated for rotation operations
- Plaintext β polynomial encoding β encryption β homomorphic ops β decrypt
| Component | Role |
|---|---|
| Ry Gates | Encode classical data into quantum states |
| QFT | Transform data into frequency domain |
| Rz Gates | Apply public key (Euler phase shifts) |
| Rx Gates | Embed Taylor series secret signal |
| Measurement | 1024 shots over basis states { |
The private key is derived from a Taylor expansion:
f(x) = Ξ£ (f^n(a)/n!) * (x-a)^n
The function f and expansion terms are known only to the key holder. The generated signal is added to data before QFT transformation.
| Metric | Plaintext | Encrypted |
|---|---|---|
| Accuracy (100 samples) | 97.00% | 97.00% |
| Accuracy (2000 samples) | 96.60% | 96.60% |
Zero accuracy loss under homomorphic encryption β privacy-preserving inference confirmed.
| Class | Precision | Recall | F1-Score | Support |
|---|---|---|---|---|
| 0 | 0.85 | 0.79 | 0.82 | 192 |
| 1 | 0.98 | 0.99 | 0.98 | 1808 |
| Quantum State | Decrypted | Encrypted |
|---|---|---|
| |00β© | 277 | 246 |
| |01β© | 251 | 255 |
| |10β© | 236 | 246 |
| |11β© | 260 | 277 |
Near-uniform distributions confirm successful encryption. Decrypted distribution recovers original state.
pip install -r requirements.txtpython src/homomorphic_inference.py --dataset diabetespython src/quantum_circuit.py --shots 1024python src/evaluate.pytenseal==0.3.14
qiskit==0.44.1
numpy==1.24.3
scikit-learn==1.3.0
pandas==2.0.3
matplotlib==3.7.2
| Name | Roll No. |
|---|---|
| Hari Sudharsan G | CB.AI.U4AIM24113 |
| Nithin S | CB.AI.U4AIM24133 |
| Amirthavarshini B | CB.AI.U4AIM24154 |
| Devadharshini M | CB.AI.U4AIM24126 |
Institution: Amrita Vishwa Vidyapeetham, Coimbatore
@inproceedings{harisudharsan2024quantum,
title = {Quantum Encryption Scheme based on Taylor Series and Fourier Transform},
author = {Hari Sudharsan, G. and Nithin, S. and Amirthavarshini, B. and Devadharshini, M.},
booktitle = {IEEE},
year = {2024},
institution = {Amrita Vishwa Vidyapeetham, Coimbatore}
}- Hong, C. Recent advances of privacy-preserving ML based on Homomorphic Encryption. Security and Safety, 2025.
- Dutta et al. Federated Learning with Quantum Computing and FHE. arXiv:2409.11430, 2024.
- Patel, M. Diabetes prediction dataset. Kaggle, 2025.