qutip
Lets your agent simulate quantum systems. It's useful for studying quantum dynamics in physics and chemistry.
What it does
QuTiP is a tool for simulating and analyzing quantum system models. It helps understand how quantum systems behave over time, especially in areas like quantum optics.
When to use it
- ✓When you need to simulate the dynamics of a closed or open quantum system.
- ✓To study quantum mechanics and quantum optics models.
- ✓When analyzing the behavior of quantum systems under certain conditions, like decay or excitation.
Example of what to ask your AI
“Simulate the evolution of a qubit under a resonant field.”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
QuTiP uses mathematical equations to describe the state of a quantum system and how it changes. You define the system, interactions, and time, and QuTiP calculates the outcome.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add K-Dense-AI/scientific-agent-skills --skill qutipOr download just the file:
curl -L https://raw.githubusercontent.com/K-Dense-AI/scientific-agent-skills/main/skills/qutip/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
QuTiP 5
Scope
Use QuTiP for finite-dimensional quantum mechanics, quantum optics, Lindblad dynamics, trajectories, weak-coupling Bloch-Redfield models, and specialized Floquet, HEOM, and permutational-invariance methods. It is not a hardware execution SDK. Circuit and control functionality moved to separate QuTiP family packages.
This skill targets QuTiP 5.3.1, released 2026-08-04. QuTiP 5.3 requires
Python 3.11 or newer. Its required distributions are NumPy (>=1.23.2), SciPy
(>=1.9.2, excluding 1.16.0 and 1.17.0), and packaging.
Reproducible uv snapshot
Create a dedicated environment and pin every direct distribution:
uv venv --python 3.11
uv pip install "qutip==5.3.1"
For plots:
uv pip install "qutip[graphics]==5.3.1"
Optional QuTiP family packages are independently versioned:
uv pip install "qutip-qip==0.4.2"
uv pip install "qutip-qtrl==0.2.0"
uv pip install "qutip-jax==0.1.1"
qutip-qip0.4.2 (2026-06-23) is the production/stable circuit, gate, and noisy-device simulation package. Import fromqutip_qip, notqutip.qip.qutip-qtrl0.2.0 (2026-06-23) provides GRAPE and CRAB quantum optimal control. It is not a trajectory viewer. Import fromqutip_qtrl, notqutip.control; PyPI still classifies it pre-alpha.qutip-jax0.1.1 (2025-05-29) is the official JAX data backend for GPU and automatic-differentiation experiments. It is explicitly pre-alpha.qutip-cupyis an official QuTiP-organization repository, but it has no PyPI release and its own README says it is not officially released. Do not put an unreleased Git install into a reproducible workflow.
Use a project lockfile or a hash-generating uv pip compile workflow when
transitive dependency identity must also be frozen.
Core tests cover small native CPU systems with known solutions. Optional JAX
checks cover CPU conversion/evolution and differentiation only; GPU/MPI,
large HEOM hierarchies, and experimentally realistic physics are unvalidated.
Snippets with placeholders such as H, rho0, or c_ops are illustrative
fragments to adapt after defining a consistent model.
Non-negotiable model contract
Before solving, record:
- Units and convention. QuTiP equations normally set (\hbar=1).
Hamiltonian entries are angular frequencies and rates have reciprocal-time
units. A decay rate specified as
1/T1needs no2*pifactor. Convert cyclic frequency with (2\pi f); never mix Hz and rad/s. - Subsystem order.
tensor(A, B, C)fixes subsystem indices0, 1, 2. Preserve that order in every state, operator, collapse channel, and partial trace.obj.ptrace([0, 2])keeps those subsystems; it does not trace them. - State validity. Check ket norm or density-matrix Hermiticity, unit trace, and eigenvalues above a stated negative tolerance. Tiny negative values may be numerical; material negativity invalidates a claimed state.
- Generator meaning. A Lindblad channel with rate
gammais represented bysqrt(gamma) * A, notgamma * A. Define what each rate measures. For example,sqrt(gamma_phi / 2) * sigmaz()gives coherence decayexp(-gamma_phi * t). - Approximations. State rotating-wave, Born-Markov, secular, weak-coupling, bath-equilibrium, truncation, symmetry, and initial-factorization assumptions wherever used.
- Numerics. Justify Hilbert truncation, output grid, integration method,
tolerances, trajectory count, and random seeds. Report
result.stats. - Convergence. Sweep every artificial cutoff: Fock dimension, time/frequency window and spacing, ODE tolerances, trajectories, Floquet harmonics, HEOM depth and bath exponents, or PIQS representation as applicable.
Qobj, dimensions, and tensor order
Prefer explicit imports and inspect both shape and structured dimensions:
from qutip import basis, qeye, sigmaz, tensor
psi = tensor(basis(2, 0), basis(3, 1))
z_on_first = tensor(sigmaz(), qeye(3))
assert psi.shape == (6, 1)
assert psi.dims == [[2, 3], [1]]
assert z_on_first.dims == [[2, 3], [2, 3]]
rho_first = psi.proj().ptrace(0) # keep subsystem 0
Matrix shape alone is insufficient: two objects can both be 6-by-6 but encode
different tensor factorizations. Read references/core_concepts.md before
building composite, superoperator, or channel models.
Choose the solver by physics
| Model | Current API | Required justification |
|---|
…
FAQ
What is a quantum system?
A quantum system is a collection of particles or fields that follow the laws of quantum mechanics, such as atoms or photons.
What does 'quantum dynamics' mean?
Quantum dynamics is the study of how the state of a quantum system evolves (changes) over time.
What types of systems can QuTiP simulate?
It can simulate finite-dimensional quantum systems, such as those used in quantum mechanics and quantum optics, including models with dissipation (energy loss).
Details
Original description by the author
Simulate and audit closed and open quantum-system models with QuTiP 5, including deterministic, trajectory, steady-state, spectral, and phase-space workflows. Use for local quantum-dynamics work where physical assumptions, dimensions, and numerical convergence must be explicit.
Popularity
- GitHub stars
- 51k
- Ranking position
- #1960
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
13c-metabolic-flux
Estimates metabolic fluxes using carbon-13 isotope tracing data. It is useful for analyzing cellular metabolism and biochemical pathways.
K-Dense-AI/scientific-agent-skills
adaptyv
Designs protein characterization experiments using the Adaptyv API. It helps estimate costs, submit sequences, and monitor lab results.
K-Dense-AI/scientific-agent-skills
aeon
Performs machine learning tasks on time series data. It is useful for classifying, forecasting, detecting anomalies, and finding patterns in sequential data.
K-Dense-AI/scientific-agent-skills
alphagenome
Looks up precomputed genomic effects for genetic variants. It provides scores and explanations to understand the impact of variants on the genome.
K-Dense-AI/scientific-agent-skills
Similar skills
pytorch-patterns
Helps your agent use PyTorch for machine learning models. It applies best practices for efficient model training and ensures reproducible results.
affaan-m/ECC
evm-token-decimals
Helps your agent avoid errors with decimal numbers across different blockchain networks. It ensures token values are accurate in transactions and calculations.
affaan-m/ECC
knowledge-agent
Creates and queries knowledge bases using AI. It allows asking questions about past work or compiling expertise on a topic.
thedotmack/claude-mem