QProtSim
Explore how residues in a protein may behave together using a simplified quantum-circuit model.
QProtSim takes a protein structure, assigns two possible model states to each amino-acid residue, and samples combinations of those states. It turns the samples into a PDF report, data tables, and figures to help you explore energy patterns and relationships between residues. You can start on a CPU; a quantum computer is not required.
Authors: Pratik Patil · Bhushan Bonde · Bhaskar Choubey
Documentation · Key concepts · First analysis
What can I learn?
Use QProtSim to explore three questions:
- Which residue states are most strongly associated with changes in the model's energy distribution?
- Which residue states tend to occur together?
- Which groups of residues might be useful candidates for further study?
These results can guide research hypotheses, but a high information score alone does not establish biological communication or a mutation's effect. The model samples residue states while keeping the input coordinates fixed. Its energy values and two-state labels need to be interpreted within that model.
Install
You need Python 3.11 or later. Download or clone this repository, open a terminal in the QProtSim folder, and create a separate Python environment:
python -m venv .venv
Activate it on macOS or Linux:
source .venv/bin/activate
Or in Windows PowerShell:
.venv\Scripts\Activate.ps1
Then install the CPU version:
python -m pip install --upgrade pip
python -m pip install ".[cpu]"
qprotsim --help
If your system uses python3 for Python 3, use it to create the environment. The installation guide covers scientific dependencies, optional structure images, and supported GPU backends.
Run a first analysis
Save this text as config.yaml in your current folder. YAML is a text format for settings; keep the layout as shown.
pdb_code: 1L2Y
molecule_name: Trp Cage
download_dir: ./pdb_cache
chain: A
protein_only: true
shots: 10000
pl_device: default.qubit
bins: 100
output_dir: ./outputs/1l2y
report_file_name: trp_cage_report.pdf
This example downloads the small Trp-cage protein structure from the Protein Data Bank, selects chain A, and requests 10,000 samples. Each sample is one combination of residue states. default.qubit runs the circuit simulation on your CPU.
qprotsim analyze --config config.yaml
Open outputs/1l2y/trp_cage_report.pdf when the command finishes. The same folder holds CSV tables and figures. A first run needs an internet connection to download the structure. To use an existing PDB file, replace pdb_code and download_dir with pdb_path: ./input/1L2Y.pdb.
Use a new output folder for each run to keep earlier results. Start with a small protein: simulator memory grows rapidly with residue count. The first-analysis guide explains the settings and memory requirements.
Read the results
Start with the PDF, then use the tables for closer analysis:
| Output | What it helps you understand |
|---|---|
| Energy plots | How the model's energy values vary across sampled states. |
| Residue statistics | Solvent exposure and how often each residue is sampled in each state. |
| Residue information scores | How a residue's state relates to the energy distribution. |
| Mutual information | Which pairs of residue states show statistical dependence. |
| Directional excitation information | How a target's state distribution changes when a source is excited. |
In the sample CSV, +1 means the ground-like model state and -1 means the excited model state. These labels describe solvation states in the model; they do not label a residue as folded or unfolded. See outputs and interpretation for filenames, units, and examples.
Choose your next step
| Your goal | Guide |
|---|---|
| Learn the vocabulary and overall workflow | Key concepts |
| Change settings or analyse several small proteins | Configuration |
| Understand the assumptions and equations | Scientific model |
| Work with results in a Python notebook or script | Python API |
| Resolve a failed run or an unclear result | Troubleshooting |
Citation and licence
Pratik Patil, Bhushan Bonde, and Bhaskar Choubey. A Quantum Circuit Framework for Protein Ensemble-Level Energetics. arXiv:2608.05491, 2026. Read the paper.
For research use, cite the paper and record the QProtSim version, input structure, configuration, and chain selection. The research page includes the citation and paper figures.
QProtSim software is distributed under the MIT License. Paper figures have their own attribution and licence.
Metadata
Release files for qprotsim 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qprotsim-0.7.0.tar.gz | 2.6 MB | Without provenance | Details for qprotsim-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qprotsim-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for qprotsim-0.7.0-py3-none-any.whl |
Total release size: 2.7 MB
Release files / qprotsim-0.7.0.tar.gz
| Download URL | qprotsim-0.7.0.tar.gz |
|---|---|
| Size | 2.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98c8832aded5d7b5ca9ac5104fec78185d55756974b379a3a907d7af8f97d2a4
|
|
BLAKE2b-256 checksum How to use checksums |
c30710d50bc26d10ef5f21e558863b2bca1f83298e0bc5bcc1aa356c28da9405
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / qprotsim-0.7.0-py3-none-any.whl
| Download URL | qprotsim-0.7.0-py3-none-any.whl |
|---|---|
| Size | 79.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a11934e5192bf219cdd464982df9aeec61d83c3cd326111504c4637efb40f1d5
|
|
BLAKE2b-256 checksum How to use checksums |
ee68789e869b113dfbd488c20678218ab97a22d46b6937f0ec7159e71d0c93b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for qprotsim 0.7.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.