qutip

Simulate open quantum systems, master equations, and quantum dynamics in Python.

Updated Aug 12, 2026
One-click install
npx skills add https://github.com/littlt-momo-c-yfc/skills --skill qutip-littlt-momo-c-yfc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: qutip
Source: https://github.com/littlt-momo-c-yfc/skills/tree/main/skills/scientific-toolkit-skill/references/scientific-skills/qutip
Command: npx skills add https://github.com/littlt-momo-c-yfc/skills --skill qutip-littlt-momo-c-yfc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires qutip, numpy, matplotlib, and includes references (resource) components.

What problem does it solve? Simulating open quantum systems with dissipation, decoherence, and time-dependent Hamiltonians requires specialized numerical solvers that are tedious to implement from scratch. This Skill provides ready-to-use QuTiP workflows for modeling Lindblad dynamics, quantum trajectories, and cavity QED systems. ## Core Features & Use Cases - Multiple Dynamics Solvers: Choose from sesolve, mesolve, mcsolve, brmesolve, and fmmesolve for unitary evolution, dissipative master equations, quantum trajectories, weak-coupling baths, and Floquet systems. - Analysis and Measurement: Compute expectation values, von Neumann entropy, concurrence, fidelity, correlation functions, spectra, and steady states. - Visualization: Render Bloch spheres, Wigner functions, Q-functions, Fock distributions, and Hinton diagrams of density matrices. - Use Case: Model a Jaynes-Cummings system with cavity decay and atomic spontaneous emission, then plot photon number decay and entanglement dynamics over time. ## Quick Start Use the qutip skill to simulate a damped harmonic oscillator with a coherent initial state and plot the photon number decay.

Frequently Asked Questions about qutip

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I simulate open quantum systems in Python?

Use QuTiP's mesolve function with a Hamiltonian, initial state, and collapse operators representing dissipation channels. It returns density matrix evolution and expectation values for specified observables over a time list.

What is the difference between sesolve, mesolve, and mcsolve in QuTiP?

sesolve handles unitary evolution of pure states in closed systems. mesolve solves Lindblad master equations for mixed states with dissipation. mcsolve runs Monte Carlo quantum trajectories for individual jump realizations.

Can QuTiP simulate quantum computing circuits?

QuTiP focuses on continuous quantum dynamics, not circuit-based quantum computing. For quantum algorithms and hardware execution, use qiskit, cirq, or pennylane instead. The optional qutip-qip package adds basic gate operations.

How do I handle time-dependent Hamiltonians in QuTiP?

Define the Hamiltonian as a list pairing operators with string expressions like 'cos(w*t)' or Python callback functions, passing parameters via the args dictionary. String format compiles for the fastest evaluation.

Why is my QuTiP simulation slow or running out of memory?

Large Hilbert space dimensions cause slowdowns. Truncate the Fock basis, use sesolve for pure states instead of mesolve, store only final states instead of all states, and use e_ops to compute observables directly.

How do I compute entanglement between two qubits in QuTiP?

Use the concurrence function on a two-qubit density matrix, or compute negativity via partial transpose. For pure bipartite states, trace out one subsystem with ptrace and calculate the von Neumann entropy of the reduced state.