Metadata-Version: 2.4
Name: qprotsim
Version: 0.7.0
Summary: QprotSim: Modelling Protein Dynamics with Quantum Computing
Author-email: Dr Bhushan Bonde <b.bonde@uos.ac.uk>, Pratik Patil <p.patil@uos.ac.uk>
Maintainer-email: Dr Bhushan Bonde <b.bonde@uos.ac.uk>, Pratik Patil <p.patil@uos.ac.uk>
License-Expression: MIT
Project-URL: Homepage, https://github.com/pra-ashok/QProtSim
Project-URL: Issues, https://github.com/pra-ashok/QProtSim/issues
Project-URL: Paper, https://arxiv.org/abs/2608.05491
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: MDAnalysis
Requires-Dist: biopython>=1.86
Requires-Dist: pandas>=2.2.2
Requires-Dist: requests>=2.32.3
Requires-Dist: OpenMM>=8.3.0
Requires-Dist: scipy>=1.11.4
Requires-Dist: freesasa>=2.2.0
Requires-Dist: netCDF4>=1.7.1
Requires-Dist: rich>=13.9.2
Requires-Dist: matplotlib>=3.7
Requires-Dist: plotly>=5.20.0
Requires-Dist: ipywidgets>=8.1.0
Requires-Dist: zstandard>=0.25.0
Requires-Dist: pennylane==0.44.0
Requires-Dist: pennylane-lightning==0.44.0
Requires-Dist: reportlab
Requires-Dist: pyyaml
Requires-Dist: seaborn>=0.13.2
Requires-Dist: pillow
Requires-Dist: psutil
Requires-Dist: pennylane-qiskit
Requires-Dist: gast>=0.7.0
Provides-Extra: cpu
Requires-Dist: pennylane-lightning==0.44.0; extra == "cpu"
Provides-Extra: cuda
Requires-Dist: pennylane-lightning-gpu==0.44.0; extra == "cuda"
Provides-Extra: rocm
Requires-Dist: pennylane-lightning-amdgpu==0.44.0; extra == "rocm"
Provides-Extra: visualization
Requires-Dist: pymol-open-source; extra == "visualization"
Provides-Extra: docs
Requires-Dist: mkdocs<2,>=1.6.1; extra == "docs"
Requires-Dist: mkdocs-shadcn<0.13,>=0.12.3; extra == "docs"
Requires-Dist: pymdown-extensions<11,>=10; extra == "docs"
Requires-Dist: pygments<3,>=2.18; extra == "docs"
Provides-Extra: dev
Requires-Dist: pytest>=7.4.0; extra == "dev"
Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
Requires-Dist: pytest-mock>=3.11.1; extra == "dev"
Requires-Dist: pytest-timeout>=2.1.0; extra == "dev"
Requires-Dist: pytest-xdist>=3.3.1; extra == "dev"
Requires-Dist: pytest-benchmark>=4.0.0; extra == "dev"
Requires-Dist: responses>=0.23.0; extra == "dev"
Requires-Dist: freezegun>=1.2.0; extra == "dev"
Requires-Dist: faker>=19.0.0; extra == "dev"
Requires-Dist: black>=23.7.0; extra == "dev"
Requires-Dist: flake8>=6.1.0; extra == "dev"
Requires-Dist: mypy>=1.5.0; extra == "dev"
Requires-Dist: pylint>=2.17.0; extra == "dev"
Requires-Dist: isort>=5.12.0; extra == "dev"
Requires-Dist: mkdocs<2,>=1.6.1; extra == "dev"
Requires-Dist: mkdocs-shadcn<0.13,>=0.12.3; extra == "dev"
Requires-Dist: pymdown-extensions<11,>=10; extra == "dev"
Requires-Dist: pygments<3,>=2.18; extra == "dev"
Requires-Dist: ipython>=8.14.0; extra == "dev"
Requires-Dist: ipdb>=0.13.13; extra == "dev"
Requires-Dist: pre-commit>=3.3.0; extra == "dev"
Requires-Dist: memory-profiler>=0.61.0; extra == "dev"
Requires-Dist: line-profiler>=4.0.0; extra == "dev"
Dynamic: license-file

# QProtSim

<img src="docs/assets/branding/qprotsim-logo.png" alt="QProtSim logo: a folded Q-shaped ribbon with connected residue nodes" width="88" height="88">

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](https://pra-ashok.github.io/CV/) · [Bhushan Bonde](https://scholar.google.com/citations?hl=en&user=O3hkOEUAAAAJ) · [Bhaskar Choubey](https://scholar.google.com/citations?user=b88L0aEAAAAJ&hl=en)

[Documentation](https://pra-ashok.github.io/QProtSim/) · [Key concepts](https://pra-ashok.github.io/QProtSim/concepts/) · [First analysis](https://pra-ashok.github.io/QProtSim/getting-started/)

[![Original research overview by Pratik Patil et al., showing quantum encoding of proteins, residue interaction graphs, circuit implementation, and energy-landscape exploration.](docs/assets/branding/qprotsim-cover.png)](docs/assets/branding/qprotsim-cover.png)

## 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:

```bash
python -m venv .venv
```

Activate it on macOS or Linux:

```bash
source .venv/bin/activate
```

Or in Windows PowerShell:

```powershell
.venv\Scripts\Activate.ps1
```

Then install the CPU version:

```bash
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](https://pra-ashok.github.io/QProtSim/installation/) 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.

```yaml
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.

```bash
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](https://pra-ashok.github.io/QProtSim/getting-started/) 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](https://pra-ashok.github.io/QProtSim/outputs/) for filenames, units, and examples.

## Choose your next step

| Your goal | Guide |
| --- | --- |
| Learn the vocabulary and overall workflow | [Key concepts](https://pra-ashok.github.io/QProtSim/concepts/) |
| Change settings or analyse several small proteins | [Configuration](https://pra-ashok.github.io/QProtSim/configuration/) |
| Understand the assumptions and equations | [Scientific model](https://pra-ashok.github.io/QProtSim/theory/) |
| Work with results in a Python notebook or script | [Python API](https://pra-ashok.github.io/QProtSim/api/) |
| Resolve a failed run or an unclear result | [Troubleshooting](https://pra-ashok.github.io/QProtSim/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](https://arxiv.org/abs/2608.05491).

For research use, cite the paper and record the QProtSim version, input structure, configuration, and chain selection. The [research page](https://pra-ashok.github.io/QProtSim/paper/) includes the citation and paper figures.

QProtSim software is distributed under the [MIT License](LICENSE). Paper figures have their own attribution and licence.
