This repository shows a small classical–quantum–classical workflow with an explicit safety gate. It is written to match the current NVIDIA work on quantum to GPU hybrid computing and to show how AI safety and AI security logic can control access to quantum routines.
Official NVIDIA announcement
https://nvidianews.nvidia.com/news/nvidia-nvqlink-quantum-gpu-computing
- Classical stage prepares and normalises data.
- A policy checks whether the data stays inside an approved envelope.
- If the policy allows it, the quantum step is executed.
- The pipeline emits structured JSON with policy, backend and latency fields. This is suitable for audit, MLOps and security monitoring.
This is a simple reference that connects current hybrid quantum–GPU news with secure and trustworthy AI concepts.
- Shows how to put a safety/policy check in front of a quantum call, which is what you want in secure AI or space/defence contexts.
- Produces JSON that can be logged, audited or sent to an MLOps/SOC pipeline, so it is easy to demo to non-quantum teams.
- Can be swapped from a simulator to CUDA-Q or a partner QPU without changing the classical logic, so it is future-ready.
- classical → policy → quantum → classical loop
- Qiskit Aer simulator as default backend
- registry of policies (small, strict)
- JSON output with pipeline version, policy name, quantum backend, latency
- ready to swap to CUDA-Q or to a real neutral-atom or photonic backend
numpy
qiskit
qiskit-aer
Install
pip install -r requirements.txtYou can also install manually
pip install numpy qiskit qiskit-aerpython hybrid_secure_demo.pyThe script runs two examples. One passes the policy and calls the quantum circuit. The other fails the policy and does not call the quantum circuit.
nvidia-quantum-hybrid/
├── requirements.txt
├── hybrid_secure_demo.py
└── README.md
hybrid_secure_demo.pyis the main demo.requirements.txtkeeps the environment minimal.
{
"pipeline_version": "0.3-nvidia-quantum-hybrid",
"policy_used": "small",
"policy_tag": "ok",
"features_meta": {
"mean": 1.012,
"std": 0.04,
"anomaly_score": 0.26
},
"quantum_called": true,
"quantum_backend": "qiskit_sim",
"quantum_confidence": 0.462,
"noise_level": 0.03,
"reason": "ok",
"explain": "policy=small, mean=1.012, theta=0.222",
"latency_s": 0.152
}- edit
run_quantum(...)to call a different backend - add more policies to the
POLICIESdictionary - expose the function as an HTTP service
- add stronger logging instead of
print - add provenance or signature checks before the quantum call
If you use or adapt this repository, please cite
Kaczmarek, S. (2025). NVIDIA Quantum Hybrid. Zenodo. https://doi.org/10.5281/zenodo.17502919
BibTeX
@software{Kaczmarek_2025_NVIDIA_Quantum_Hybrid,
author = {Sylvester Kaczmarek},
title = {{NVIDIA Quantum Hybrid}},
year = {2025},
publisher = {Zenodo},
url = {https://github.com/sylvesterkaczmarek/nvidia-quantum-hybrid},
doi = {10.5281/zenodo.17502919}
}MIT. See LICENSE.
© Sylvester Kaczmarek · https://www.sylvesterkaczmarek.com
