Classify quantum circuits as Malicious or Benign using a finetuned LLM adapter.
Project description
QASM Validator
Classify quantum circuits as "Malicious" or "Benign" using a finetuned LLM adapter.
Installation
pip install .
Usage
from qiskit_validation_addon import classify_quantum_circuit
result = classify_quantum_circuit("""
OPENQASM 2.0;
include "qelib1.inc";
qreg q[2];
creg c[2];
h q[0];
cx q[0],q[1];
measure q[0] -> c[0];
measure q[1] -> c[1];
""")
print(result.label) # "Malicious" or "Benign"
print(result.raw_response) # Raw model output
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qiskit_validation_addon-0.0.2.tar.gz.
File metadata
- Download URL: qiskit_validation_addon-0.0.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd72d90a30188fda68c0086a50aa187762a31c81fbcd53455dcdb28425feb3c7
|
|
| MD5 |
02e00b9846b05fdb196d6748134b7615
|
|
| BLAKE2b-256 |
2a0e1c5d4f77b602fd3cd6056e45e79b3b91a046b67e56e0719a4be70890c44d
|
File details
Details for the file qiskit_validation_addon-0.0.2-py3-none-any.whl.
File metadata
- Download URL: qiskit_validation_addon-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdd5e1de56f4eb2cf8fff1dd18ca8bba3876443f37015e75ca72c8288b60ed45
|
|
| MD5 |
b8a76246384b86c0eace6ec29a70cdd3
|
|
| BLAKE2b-256 |
ee62f94a39a46c01586ce7f91370ca622f376cfb70b4d7cec5dd81c66a9b630a
|