[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ASXHS4KB1AVGECEBHX18CC":3,"skill-same:01M7ASXHS4KB1AVGECEBHX18CC":101},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":14,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M7ASXHS4KB1AVGECEBHX18CC","qutip",null,"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.","nikhilesh-s\u002Fclaude-toolkit","nikhilesh-s","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F123913414?v=4","01M7ARX6NXB6DFY1CCP91599KE","Nikhilesh Suravarjjala","01M7ARX6PFTQKR6ME1K2S4AZ9K",0,"MIT","https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fqutip\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: qutip\ndescription: 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.\nlicense: MIT\ncompatibility: Requires Python 3.11+, uv, and qutip==5.3.0 for executable simulations. Bundled planners and all script help run with the Python standard library; plotting requires the pinned graphics extra. No network service or credentials are used.\nmetadata:\n  version: \"1.1\"\n  skill-author: K-Dense Inc.\n  last-reviewed: \"2026-07-23\"\n---\n\n# QuTiP 5\n\n## Scope\n\nUse QuTiP for finite-dimensional quantum mechanics, quantum optics, Lindblad\ndynamics, trajectories, weak-coupling Bloch-Redfield models, and specialized\nFloquet, HEOM, and permutational-invariance methods. It is not a hardware\nexecution SDK. Circuit and control functionality moved to separate QuTiP family\npackages.\n\nThis skill targets **QuTiP 5.3.0**, released 2026-05-22. QuTiP 5.3 requires\nPython 3.11 or newer. Its required distributions are NumPy (`>=1.23.2`), SciPy\n(`>=1.9.2`, excluding `1.16.0` and `1.17.0`), and `packaging`.\n\n## Reproducible uv snapshot\n\nCreate a dedicated environment and pin every direct distribution:\n\n```bash\nuv venv --python 3.11\nuv pip install \"qutip==5.3.0\"\n```\n\nFor plots:\n\n```bash\nuv pip install \"qutip[graphics]==5.3.0\"\n```\n\nOptional QuTiP family packages are independently versioned:\n\n```bash\nuv pip install \"qutip-qip==0.4.2\"\nuv pip install \"qutip-qtrl==0.2.0\"\nuv pip install \"qutip-jax==0.1.1\"\n```\n\n- `qutip-qip` 0.4.2 (2026-06-23) is the production\u002Fstable circuit, gate, and\n  noisy-device simulation package. Import from `qutip_qip`, not `qutip.qip`.\n- `qutip-qtrl` 0.2.0 (2026-06-23) provides GRAPE and CRAB **quantum optimal\n  control**. It is not a trajectory viewer. Import from `qutip_qtrl`, not\n  `qutip.control`; PyPI still classifies it pre-alpha.\n- `qutip-jax` 0.1.1 (2025-05-29) is the official JAX data backend for GPU and\n  automatic-differentiation experiments. It is explicitly pre-alpha.\n- `qutip-cupy` is an official QuTiP-organization repository, but it has no PyPI\n  release and its own README says it is not officially released. Do not put an\n  unreleased Git install into a reproducible workflow.\n\nUse a project lockfile or a hash-generating `uv pip compile` workflow when\ntransitive dependency identity must also be frozen.\n\n## Non-negotiable model contract\n\nBefore solving, record:\n\n1. **Units and convention.** QuTiP equations normally set \\(\\hbar=1\\).\n   Hamiltonian entries are angular frequencies and rates have reciprocal-time\n   units. Convert cyclic frequency with \\(2\\pi f\\); never mix Hz and rad\u002Fs.\n2. **Subsystem order.** `tensor(A, B, C)` fixes subsystem indices `0, 1, 2`.\n   Preserve that order in every state, operator, collapse channel, and partial\n   trace. `obj.ptrace([0, 2])` keeps those subsystems; it does not trace them.\n3. **State validity.** Check ket norm or density-matrix Hermiticity, unit trace,\n   and eigenvalues above a stated negative tolerance. Tiny negative values may\n   be numerical; material negativity invalidates a claimed state.\n4. **Generator meaning.** A Lindblad channel with rate `gamma` is represented\n   by `sqrt(gamma) * A`, not `gamma * A`. Define what each rate measures. For\n   example, `sqrt(gamma_phi \u002F 2) * sigmaz()` gives coherence decay\n   `exp(-gamma_phi * t)`.\n5. **Approximations.** State rotating-wave, Born-Markov, secular, weak-coupling,\n   bath-equilibrium, truncation, symmetry, and initial-factorization assumptions\n   wherever used.\n6. **Numerics.** Justify Hilbert truncation, output grid, integration method,\n   tolerances, trajectory count, and random seeds. Report `result.stats`.\n7. **Convergence.** Sweep every artificial cutoff: Fock dimension, time\u002Ffrequency\n   window and spacing, ODE tolerances, trajectories, Floquet harmonics, HEOM\n   depth and bath exponents, or PIQS representation as applicable.\n\n## Qobj, dimensions, and tensor order\n\nPrefer explicit imports and inspect both shape and structured dimensions:\n\n```python\nfrom qutip import basis, qeye, sigmaz, tensor\n\npsi = tensor(basis(2, 0), basis(3, 1))\nz_on_first = tensor(sigmaz(), qeye(3))\n\nassert psi.shape == (6, 1)\nassert psi.dims == [[2, 3], [1]]\nassert z_on_first.dims == [[2, 3], [2, 3]]\nrho_first = psi.proj().ptrace(0)  # keep subsystem 0\n```\n\nMatrix shape alone is insufficient: two objects can both be 6-by-6 but encode\ndifferent tensor factorizations. Read `references\u002Fcore_concepts.md` before\nbuilding composite, superoperator, or channel models.\n\n## Choose the solver by physics\n\n| Model | Current API | Required justification |\n|---|---|---|\n| Closed, pure, unitary | `sesolve` | Hermitian Hamiltonian; no dissipation |\n| Lindblad\u002Fopen or mixed | `mesolve` | Markovian completely positive model and channel rates |\n| Quantum jumps | `mcsolve` | Unravelling, trajectory convergence, seeds |\n| Microscopic weak bath | `brmesolve` | Born-Markov\u002Fweak coupling, spectra, secular choice |\n| Diffusive measurement | `ssesolve`, `smesolve` | monitored versus unmonitored channels |\n| Periodic drive | `FloquetBasis`, `fsesolve`, `fmmesolve` | verified period and Floquet convergence |\n| Structured non-Markovian bath | `qutip.solver.heom` | bath expansion and hierarchy convergence |\n| Symmetric spin ensemble | `qutip.piqs` | permutation symmetry and basis choice |\n\nDo not select a more specialized solver merely because it exists.\n\n## Deterministic open-system example\n\nQuTiP 5.3 uses ordinary option dictionaries. Solver controls, `e_ops`, and\n`args` are keyword-only; the old mutable options object is gone.\n\n```python\nimport numpy as np\nfrom qutip import basis, mesolve, sigmam, sigmaz\n\nomega = 2.0\ngamma = 0.15\ntlist = np.linspace(0.0, 20.0, 401)\nexcited = basis(2, 0)\n\nresult = mesolve(\n    0.5 * omega * sigmaz(),\n    excited,\n    tlist,\n    c_ops=[np.sqrt(gamma) * sigmam()],\n    e_ops={\"sigma_z\": sigmaz(), \"excited\": excited.proj()},\n    options={\n        \"method\": \"adams\",\n        \"atol\": 1e-10,\n        \"rtol\": 1e-8,\n        \"store_final_state\": True,\n        \"progress_bar\": \"\",\n    },\n)\n\npopulation = np.asarray(result.e_data[\"excited\"])\nassert np.max(np.abs(population - np.exp(-gamma * tlist))) \u003C 2e-6\nassert isinstance(result.stats, dict)\n```\n\nIf the problem is stiff, compare `bdf` or `lsoda`; do not change an integrator\nwithout rerunning tolerance and invariant checks. QuTiP 5.3 also supports\n`options={\"matrix_form\": True}` in `mesolve`; benchmark and validate it before\nusing it as a default.\n\n## Time-dependent systems\n\nPrefer trusted Pythonic callables or numeric coefficient arrays. Do not create\ncoefficient source strings from user input.\n\n```python\nimport numpy as np\nfrom qutip import QobjEvo, sigmax, sigmaz\n\ndef envelope(t, amplitude, center, width):\n    return amplitude * np.exp(-0.5 * ((t - center) \u002F width) ** 2)\n\nH = QobjEvo(\n    [0.5 * sigmaz(), [sigmax(), envelope]],\n    args={\"amplitude\": 0.2, \"center\": 5.0, \"width\": 1.0},\n)\ninstantaneous_H = H(5.0)\nH.arguments(amplitude=0.1)\n```\n\nThe older `f(t, args)` coefficient signature is deprecated in 5.3 and is\nscheduled for removal in 5.5. See `references\u002Ftime_evolution.md`.\n\n## Trajectories and stochastic solvers\n\n```python\nimport numpy as np\nfrom qutip import basis, mcsolve, sigmam, sigmaz\n\ntlist = np.linspace(0.0, 10.0, 201)\nresult = mcsolve(\n    0.5 * sigmaz(),\n    basis(2, 0),\n    tlist,\n    [np.sqrt(0.2) * sigmam()],\n    e_ops=[basis(2, 0).proj()],\n    ntraj=400,\n    seeds=20260723,\n    options={\"keep_runs_results\": False, \"progress_bar\": \"\"},\n)\n```\n\nReport `ntraj`, `result.seeds`, uncertainty or repeated-seed sensitivity, and\nwhether individual runs were retained. Reuse `seeds=previous_result.seeds` only\nwhen paired trajectories are intentional. `ssesolve` and `smesolve` use the\nboolean `heterodyne` argument, not legacy integer noise codes.\n\n## Steady states, spectra, and phase space\n\n```python\nimport numpy as np\nfrom qutip import QFunc, liouvillian, operator_to_vector, qfunc, steadystate\n\nrho_ss = steadystate(H, c_ops, method=\"direct\")\nresidual = (liouvillian(H, c_ops) * operator_to_vector(rho_ss)).norm()\nassert residual \u003C 1e-9\n\nxvec = np.linspace(-5.0, 5.0, 151)\nQ_once = qfunc(rho_ss, xvec, xvec)\nq_many = QFunc(xvec, xvec)\nQ_again = q_many(rho_ss)\nassert Q_once.shape == (len(xvec), len(xvec))\n```\n\nFor `wigner`, `qfunc`, and `QFunc`, array element `[j, k]` corresponds to\n`yvec[j]`, `xvec[k]`. In QuTiP 5.3, `QFunc` is initialized with fixed\ncoordinates and called with a state; it has no `.eval` method. This skill never\nuses Python dynamic-code execution. Prefer `plot_wigner`, `Result.plot_expect`,\nor explicit Matplotlib axes as documented in `references\u002Fvisualization.md`.\n\nDirect `spectrum` is a stationary steady-state spectrum. An FFT of a finite\ncorrelation requires explicit checks for tail decay, timestep aliasing,\nfrequency resolution, window sensitivity, and transform convention. See\n`references\u002Fanalysis.md`.\n\n## Advanced boundaries\n\n- Import HEOM from `qutip.solver.heom`; the legacy QuTiP 4 nonmarkov HEOM\n  namespace is stale.\n- Use `FloquetBasis` for modes and quasi-energies. Verify\n  `H(t + T) == H(t)` numerically and sweep basis\u002Ftruncation choices.\n- Access PIQS with `from qutip import piqs`. `Dicke.pisolve` is only the\n  optimized diagonal-state\u002Fdiagonal-Hamiltonian route; general Dicke-basis\n  dynamics use the Liouvillian with `mesolve`.\n- `brmesolve` can violate positivity, especially without secularization. Check\n  density-matrix eigenvalues over time.\n- QIP and optimal control are extension-package concerns. Never present local\n  simulation as quantum-hardware execution.\n\nSee `references\u002Fadvanced.md` for HEOM, Floquet, PIQS, stochastic, and extension\nboundaries.\n\n## Safe local CLIs\n\nAll bundled tools are local-only, emit strict JSON, reject non-finite JSON and\nunknown keys, and never load pickle files or executable model code. Simulation\nimports are lazy, so every `--help` works without QuTiP installed.\n\n| Script | Purpose |\n|---|---|\n| `scripts\u002Fqobj_model_validator.py` | Validate bounded Qobj model JSON, dimensions, states, rates, and role compatibility |\n| `scripts\u002Ftwo_level_simulation.py` | Run a bounded two-level Lindblad or jump simulation |\n| `scripts\u002Fsolver_config_planner.py` | Select a current solver and option\u002Fchecklist plan |\n| `scripts\u002Fconvergence_sweep.py` | Sweep tolerances\u002Fgrid size or trajectory count on a synthetic model |\n| `scripts\u002Fresult_audit.py` | Audit JSON output without deserializing Python objects |\n| `scripts\u002Fsteady_state_spectrum_planner.py` | Plan bounded steady-state and direct\u002FFFT spectral checks |\n\nExample:\n\n```bash\npython skills\u002Fqutip\u002Fscripts\u002Ftwo_level_simulation.py --help\npython skills\u002Fqutip\u002Fscripts\u002Ftwo_level_simulation.py \\\n  --decay-rate 0.2 --t-final 10 --time-points 201 \\\n  --output two-level.json\npython skills\u002Fqutip\u002Fscripts\u002Fresult_audit.py two-level.json\n```\n\n## Completion checklist\n\n- Record units, \\(\\hbar\\), tensor order, initial state, channels, and model\n  assumptions.\n- Validate Hermiticity, norm\u002Ftrace, positivity, dimensions, and generator units.\n- Pin QuTiP and direct extensions; record platform, Python, NumPy, and SciPy.\n- Inspect result options and stats; do not assume states were stored.\n- Perform cutoff, grid, tolerance\u002Fintegrator, and stochastic convergence sweeps.\n- Save portable numeric\u002Fconfiguration summaries as JSON or text. Do not load\n  untrusted QuTiP object\u002Fresult files because object serialization can execute\n  code.\n\n## References\n\n- `references\u002Fcore_concepts.md` — Qobj, dimensions, tensor products, states,\n  channels, and unit conventions\n- `references\u002Ftime_evolution.md` — current solver signatures, options, results,\n  QobjEvo, trajectories, and numerical controls\n- `references\u002Fanalysis.md` — physical-state audits, steady states,\n  correlations, spectra, and convergence\n- `references\u002Fvisualization.md` — Wigner, Q functions, `QFunc`, Bloch, result,\n  and matrix plots\n- `references\u002Fadvanced.md` — Bloch-Redfield, stochastic, Floquet, HEOM, PIQS,\n  and QuTiP family package boundaries\n\n## Dated official sources\n\nVerified **2026-07-23**:\n\n- [QuTiP 5.3.0 PyPI metadata](https:\u002F\u002Fpypi.org\u002Fproject\u002Fqutip\u002F)\n- [QuTiP 5.3.0 release](https:\u002F\u002Fgithub.com\u002Fqutip\u002Fqutip\u002Freleases\u002Ftag\u002Fv5.3.0)\n- [QuTiP 5.3 changelog](https:\u002F\u002Fqutip.readthedocs.io\u002Fen\u002Fstable\u002Fchangelog.html)\n- [QuTiP 5.3 API](https:\u002F\u002Fqutip.readthedocs.io\u002Fen\u002Fstable\u002Fapidoc\u002Fapidoc.html)\n- [QuTiP version-5 tutorials](https:\u002F\u002Fgithub.com\u002Fqutip\u002Fqutip-tutorials\u002Ftree\u002Fmain\u002Ftutorials-v5)\n- [qutip-qip PyPI](https:\u002F\u002Fpypi.org\u002Fproject\u002Fqutip-qip\u002F)\n- [qutip-qtrl PyPI](https:\u002F\u002Fpypi.org\u002Fproject\u002Fqutip-qtrl\u002F)\n- [qutip-jax PyPI](https:\u002F\u002Fpypi.org\u002Fproject\u002Fqutip-jax\u002F)\n- [official unreleased qutip-cupy repository](https:\u002F\u002Fgithub.com\u002Fqutip\u002Fqutip-cupy)\n","# QuTiP 5\n\n## Scope\n\nUse QuTiP for finite-dimensional quantum mechanics, quantum optics, Lindblad\ndynamics, trajectories, weak-coupling Bloch-Redfield models, and specialized\nFloquet, HEOM, and permutational-invariance methods. It is not a hardware\nexecution SDK. Circuit and control functionality moved to separate QuTiP family\npackages.\n\nThis skill targets **QuTiP 5.3.0**, released 2026-05-22. QuTiP 5.3 requires\nPython 3.11 or newer. Its required distributions are NumPy (`>=1.23.2`), SciPy\n(`>=1.9.2`, excluding `1.16.0` and `1.17.0`), and `packaging`.\n\n## Reproducible uv snapshot\n\nCreate a dedicated environment and pin every direct distribution:\n\n```bash\nuv venv --python 3.11\nuv pip install \"qutip==5.3.0\"\n```\n\nFor plots:\n\n```bash\nuv pip install \"qutip[graphics]==5.3.0\"\n```\n\nOptional QuTiP family packages are independently versioned:\n\n```bash\nuv pip install \"qutip-qip==0.4.2\"\nuv pip install \"qutip-qtrl==0.2.0\"\nuv pip install \"qutip-jax==0.1.1\"\n```\n\n- `qutip-qip` 0.4.2 (2026-06-23) is the production\u002Fstable circuit, gate, and\n  noisy-device simulation package. Import from `qutip_qip`, not `qutip.qip`.\n- `qutip-qtrl` 0.2.0 (2026-06-23) provides GRAPE and CRAB **quantum optimal\n  control**. It is not a trajectory viewer. Import from `qutip_qtrl`, not\n  `qutip.control`; PyPI still classifies it pre-alpha.\n- `qutip-jax` 0.1.1 (2025-05-29) is the official JAX data backend for GPU and\n  automatic-differentiation experiments. It is explicitly pre-alpha.\n- `qutip-cupy` is an official QuTiP-organization repository, but it has no PyPI\n  release and its own README says it is not officially released. Do not put an\n  unreleased Git install into a reproducible workflow.\n\nUse a project lockfile or a hash-generating `uv pip compile` workflow when\ntransitive dependency identity must also be frozen.\n\n## Non-negotiable model contract\n\nBefore solving, record:\n\n1. **Units and convention.** QuTiP equations normally set \\(\\hbar=1\\).\n   Hamiltonian entries are angular frequencies and rates have reciprocal-time\n   units. Convert cyclic frequency with \\(2\\pi f\\); never mix Hz and rad\u002Fs.\n2. **Subsystem order.** `tensor(A, B, C)` fixes subsystem indices `0, 1, 2`.\n   Preserve that order in every state, operator, collapse channel, and partial\n   trace. `obj.ptrace([0, 2])` keeps those subsystems; it does not trace them.\n3. **State validity.** Check ket norm or density-matrix Hermiticity, unit trace,\n   and eigenvalues above a stated negative tolerance. Tiny negative values may\n   be numerical; material negativity invalidates a claimed state.\n4. **Generator meaning.** A Lindblad channel with rate `gamma` is represented\n   by `sqrt(gamma) * A`, not `gamma * A`. Define what each rate measures. For\n   example, `sqrt(gamma_phi \u002F 2) * sigmaz()` gives coherence decay\n   `exp(-gamma_phi * t)`.\n5. **Approximations.** State rotating-wave, Born-Markov, secular, weak-coupling,\n   bath-equilibrium, truncation, symmetry, and initial-factorization assumptions\n   wherever used.\n6. **Numerics.** Justify Hilbert truncation, output grid, integration method,\n   tolerances, trajectory count, and random seeds. Report `result.stats`.\n7. **Convergence.** Sweep every artificial cutoff: Fock dimension, time\u002Ffrequency\n   window and spacing, ODE tolerances, trajectories, Floquet harmonics, HEOM\n   depth and bath exponents, or PIQS representation as applicable.\n\n## Qobj, dimensions, and tensor order\n\nPrefer explicit imports and inspect both shape and structured dimensions:\n\n```python\nfrom qutip import basis, qeye, sigmaz, tensor\n\npsi = tensor(basis(2, 0), basis(3, 1))\nz_on_first = tensor(sigmaz(), qeye(3))\n\nassert psi.shape == (6, 1)\nassert psi.dims == [[2, 3], [1]]\nassert z_on_first.dims == [[2, 3], [2, 3]]\nrho_first = psi.proj().ptrace(0)  # keep subsystem 0\n```\n\nMatrix shape alone is insufficient: two objects can both be 6-by-6 but encode\ndifferent tensor factorizations. Read `references\u002Fcore_concepts.md` before\nbuilding composite, superoperator, or channel models.\n\n## Choose the solver by physics\n\n| Model | Current API | Required justification |\n|---|---|---|\n| Closed, pure, unitary | `sesolve` | Hermitian Hamiltonian; no dissipation |\n| Lindblad\u002Fopen or mixed | `mesolve` | Markovian completely positive model and channel rates |\n| Quantum jumps | `mcsolve` | Unravelling, trajectory convergence, seeds |\n| Microscopic weak bath | `brmesolve` | Born-Markov\u002Fweak coupling, spectra, secular choice |\n| Diffusive measurement | `ssesolve`, `smesolve` | monitored versus unmonitored channels |\n| Periodic drive | `FloquetBasis`, `fsesolve`, `fmmesolve` | verified period and Floquet convergence |\n| Structured non-Markovian bath | `qutip.solver.heom` | bath expansion and hierarchy convergence |\n| Symmetric spin ensemble | `qutip.piqs` | permutation symmetry and basis choice |\n\nDo not select a more specialized solver merely because it exists.\n\n## Deterministic open-system example\n\nQuTiP 5.3 uses ordinary option dictionaries. Solver controls, `e_ops`, and\n`args` are keyword-only; the old mutable options object is gone.\n\n```python\nimport numpy as np\nfrom qutip import basis, mesolve, sigmam, sigmaz\n\nomega = 2.0\ngamma = 0.15\ntlist = np.linspace(0.0, 20.0, 401)\nexcited = basis(2, 0)\n\nresult = mesolve(\n    0.5 * omega * sigmaz(),\n    excited,\n    tlist,\n    c_ops=[np.sqrt(gamma) * sigmam()],\n    e_ops={\"sigma_z\": sigmaz(), \"excited\": excited.proj()},\n    options={\n        \"method\": \"adams\",\n        \"atol\": 1e-10,\n        \"rtol\": 1e-8,\n        \"store_final_state\": True,\n        \"progress_bar\": \"\",\n    },\n)\n\npopulation = np.asarray(result.e_data[\"excited\"])\nassert np.max(np.abs(population - np.exp(-gamma * tlist))) \u003C 2e-6\nassert isinstance(result.stats, dict)\n```\n\nIf the problem is stiff, compare `bdf` or `lsoda`; do not change an integrator\nwithout rerunning tolerance and invariant checks. QuTiP 5.3 also supports\n`options={\"matrix_form\": True}` in `mesolve`; benchmark and validate it before\nusing it as a default.\n\n## Time-dependent systems\n\nPrefer trusted Pythonic callables or numeric coefficient arrays. Do not create\ncoefficient source strings from user input.\n\n```python\nimport numpy as np\nfrom qutip import QobjEvo, sigmax, sigmaz\n\ndef envelope(t, amplitude, center, width):\n    return amplitude * np.exp(-0.5 * ((t - center) \u002F width) ** 2)\n\nH = QobjEvo(\n    [0.5 * sigmaz(), [sigmax(), envelope]],\n    args={\"amplitude\": 0.2, \"center\": 5.0, \"width\": 1.0},\n)\ninstantaneous_H = H(5.0)\nH.arguments(amplitude=0.1)\n```\n\nThe older `f(t, args)` coefficient signature is deprecated in 5.3 and is\nscheduled for removal in 5.5. See `references\u002Ftime_evolution.md`.\n\n## Trajectories and stochastic solvers\n\n```python\nimport numpy as np\nfrom qutip import basis, mcsolve, sigmam, sigmaz\n\ntlist = np.linspace(0.0, 10.0, 201)\nresult = mcsolve(\n    0.5 * sigmaz(),\n    basis(2, 0),\n    tlist,\n    [np.sqrt(0.2) * sigmam()],\n    e_ops=[basis(2, 0).proj()],\n    ntraj=400,\n    seeds=20260723,\n    options={\"keep_runs_results\": False, \"progress_bar\": \"\"},\n)\n```\n\nReport `ntraj`, `result.seeds`, uncertainty or repeated-seed sensitivity, and\nwhether individual runs were retained. Reuse `seeds=previous_result.seeds` only\nwhen paired trajectories are intentional. `ssesolve` and `smesolve` use the\nboolean `heterodyne` argument, not legacy integer noise codes.\n\n## Steady states, spectra, and phase space\n\n```python\nimport numpy as np\nfrom qutip import QFunc, liouvillian, operator_to_vector, qfunc, steadystate\n\nrho_ss = steadystate(H, c_ops, method=\"direct\")\nresidual = (liouvillian(H, c_ops) * operator_to_vector(rho_ss)).norm()\nassert residual \u003C 1e-9\n\nxvec = np.linspace(-5.0, 5.0, 151)\nQ_once = qfunc(rho_ss, xvec, xvec)\nq_many = QFunc(xvec, xvec)\nQ_again = q_many(rho_ss)\nassert Q_once.shape == (len(xvec), len(xvec))\n```\n\nFor `wigner`, `qfunc`, and `QFunc`, array element `[j, k]` corresponds to\n`yvec[j]`, `xvec[k]`. In QuTiP 5.3, `QFunc` is initialized with fixed\ncoordinates and called with a state; it has no `.eval` method. This skill never\nuses Python dynamic-code execution. Prefer `plot_wigner`, `Result.plot_expect`,\nor explicit Matplotlib axes as documented in `references\u002Fvisualization.md`.\n\nDirect `spectrum` is a stationary steady-state spectrum. An FFT of a finite\ncorrelation requires explicit checks for tail decay, timestep aliasing,\nfrequency resolution, window sensitivity, and transform convention. See\n`references\u002Fanalysis.md`.\n\n## Advanced boundaries\n\n- Import HEOM from `qutip.solver.heom`; the legacy QuTiP 4 nonmarkov HEOM\n  namespace is stale.\n- Use `FloquetBasis` for modes and quasi-energies. Verify\n  `H(t + T) == H(t)` numerically and sweep basis\u002Ftruncation choices.\n- Access PIQS with `from qutip import piqs`. `Dicke.pisolve` is only the\n  optimized diagonal-state\u002Fdiagonal-Hamiltonian route; general Dicke-basis\n  dynamics use the Liouvillian with `mesolve`.\n- `brmesolve` can violate positivity, especially without secularization. Check\n  density-matrix eigenvalues over time.\n- QIP and optimal control are extension-package concerns. Never present local\n  simulation as quantum-hardware execution.\n\nSee `references\u002Fadvanced.md` for HEOM, Floquet, PIQS, stochastic, and extension\nboundaries.\n\n## Safe local CLIs\n\nAll bundled tools are local-only, emit strict JSON, reject non-finite JSON and\nunknown keys, and never load pickle files or executable model code. Simulation\nimports are lazy, so every `--help` works without QuTiP installed.\n\n| Script | Purpose |\n|---|---|\n| `scripts\u002Fqobj_model_validator.py` | Validate bounded Qobj model JSON, dimensions, states, rates, and role compatibility |\n| `scripts\u002Ftwo_level_simulation.py` | Run a bounded two-level Lindblad or jump simulation |\n| `scripts\u002Fsolver_config_planner.py` | Select a current solver and option\u002Fchecklist plan |\n| `scripts\u002Fconvergence_sweep.py` | Sweep tolerances\u002Fgrid size or trajectory count on a synthetic model |\n| `scripts\u002Fresult_audit.py` | Audit JSON output without deserializing Python objects |\n| `scripts\u002Fsteady_state_spectrum_planner.py` | Plan bounded steady-state and direct\u002FFFT spectral checks |\n\nExample:\n\n```bash\npython skills\u002Fqutip\u002Fscripts\u002Ftwo_level_simulation.py --help\npython skills\u002Fqutip\u002Fscripts\u002Ftwo_level_simulation.py \\\n  --decay-rate 0.2 --t-final 10 --time-points 201 \\\n  --output two-level.json\npython skills\u002Fqutip\u002Fscripts\u002Fresult_audit.py two-level.json\n```\n\n## Completion checklist\n\n- Record units, \\(\\hbar\\), tensor order, initial state, channels, and model\n  assumptions.\n- Validate Hermiticity, norm\u002Ftrace, positivity, dimensions, and generator units.\n- Pin QuTiP and direct extensions; record platform, Python, NumPy, and SciPy.\n- Inspect result options and stats; do not assume states were stored.\n- Perform cutoff, grid, tolerance\u002Fintegrator, and stochastic convergence sweeps.\n- Save portable numeric\u002Fconfiguration summaries as JSON or text. Do not load\n  untrusted QuTiP object\u002Fresult files because object serialization can execute\n  code.\n\n## References\n\n- `references\u002Fcore_concepts.md` — Qobj, dimensions, tensor products, states,\n  channels, and unit conventions\n- `references\u002Ftime_evolution.md` — current solver signatures, options, results,\n  QobjEvo, trajectories, and numerical controls\n- `references\u002Fanalysis.md` — physical-state audits, steady states,\n  correlations, spectra, and convergence\n- `references\u002Fvisualization.md` — Wigner, Q functions, `QFunc`, Bloch, result,\n  and matrix plots\n- `references\u002Fadvanced.md` — Bloch-Redfield, stochastic, Floquet, HEOM, PIQS,\n  and QuTiP family package boundaries\n\n## Dated official sources\n\nVerified **2026-07-23**:\n\n- [QuTiP 5.3.0 PyPI metadata](https:\u002F\u002Fpypi.org\u002Fproject\u002Fqutip\u002F)\n- [QuTiP 5.3.0 release](https:\u002F\u002Fgithub.com\u002Fqutip\u002Fqutip\u002Freleases\u002Ftag\u002Fv5.3.0)\n- [QuTiP 5.3 changelog](https:\u002F\u002Fqutip.readthedocs.io\u002Fen\u002Fstable\u002Fchangelog.html)\n- [QuTiP 5.3 API](https:\u002F\u002Fqutip.readthedocs.io\u002Fen\u002Fstable\u002Fapidoc\u002Fapidoc.html)\n- [QuTiP version-5 tutorials](https:\u002F\u002Fgithub.com\u002Fqutip\u002Fqutip-tutorials\u002Ftree\u002Fmain\u002Ftutorials-v5)\n- [qutip-qip PyPI](https:\u002F\u002Fpypi.org\u002Fproject\u002Fqutip-qip\u002F)\n- [qutip-qtrl PyPI](https:\u002F\u002Fpypi.org\u002Fproject\u002Fqutip-qtrl\u002F)\n- [qutip-jax PyPI](https:\u002F\u002Fpypi.org\u002Fproject\u002Fqutip-jax\u002F)\n- [official unreleased qutip-cupy repository](https:\u002F\u002Fgithub.com\u002Fqutip\u002Fqutip-cupy)\n",{"name":5,"license":15,"metadata":24,"description":7,"compatibility":28},{"version":25,"skill-author":26,"last-reviewed":27},"1.1","K-Dense Inc.","2026-07-23","Requires Python 3.11+, uv, and qutip==5.3.0 for executable simulations. Bundled planners and all script help run with the Python standard library; plotting requires the pinned graphics extra. No network service or credentials are used.","nik-claude-toolkit","4feaa2876384b593d9e30d9190bc56985eeeeb8e","skills\u002Fqutip","https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit","https:\u002F\u002Fgithub.com\u002Fnikhilesh-s","2026-10-22 14:30:58",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add nikhilesh-s\u002Fclaude-toolkit --skill qutip",{"tool":41,"command":42},"bunx","bunx skills add nikhilesh-s\u002Fclaude-toolkit --skill qutip",{"tool":44,"command":45},"pnpm","pnpm dlx skills add nikhilesh-s\u002Fclaude-toolkit --skill qutip","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fqutip\u002FSKILL.md",true,[49,55,59,63,67,71,77,81,85,89,93,97],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fadvanced.md","REFERENCE","参考文档",12974,"https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fqutip\u002Freferences\u002Fadvanced.md",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fanalysis.md",10333,"https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fqutip\u002Freferences\u002Fanalysis.md",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fcore_concepts.md",8519,"https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fqutip\u002Freferences\u002Fcore_concepts.md",{"path":64,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Ftime_evolution.md",12542,"https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fqutip\u002Freferences\u002Ftime_evolution.md",{"path":68,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fvisualization.md",8771,"https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fqutip\u002Freferences\u002Fvisualization.md",{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"scripts\u002F_common.py","SCRIPT","脚本",12072,"https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fqutip\u002Fscripts\u002F_common.py",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"scripts\u002Fconvergence_sweep.py",12418,"https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fqutip\u002Fscripts\u002Fconvergence_sweep.py",{"path":82,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Fqobj_model_validator.py",10932,"https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fqutip\u002Fscripts\u002Fqobj_model_validator.py",{"path":86,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":87,"sourceHtmlUrl":88},"scripts\u002Fresult_audit.py",12043,"https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fqutip\u002Fscripts\u002Fresult_audit.py",{"path":90,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":91,"sourceHtmlUrl":92},"scripts\u002Fsolver_config_planner.py",10090,"https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fqutip\u002Fscripts\u002Fsolver_config_planner.py",{"path":94,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":95,"sourceHtmlUrl":96},"scripts\u002Fsteady_state_spectrum_planner.py",7981,"https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fqutip\u002Fscripts\u002Fsteady_state_spectrum_planner.py",{"path":98,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":99,"sourceHtmlUrl":100},"scripts\u002Ftwo_level_simulation.py",12724,"https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fqutip\u002Fscripts\u002Ftwo_level_simulation.py",[102,109,117,124,131,138],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7AT8339CZMCRMRZP6G1R329","zarr-python","Chunked N-D arrays for cloud storage (Zarr-Python 3). Compressed arrays, parallel I\u002FO, S3\u002FGCS via fsspec, NumPy\u002FDask\u002FXarray compatible, for large-scale scientific computing pipelines.","https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fzarr-python\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":113,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M7AT77E7JPH96ETQBNDVVYDM","video-use","Edit any video by conversation. Transcribe, cut, color grade, generate overlay animations, burn subtitles — for talking heads, montages, tutorials, travel, interviews. No presets, no menus. Ask questions, confirm the plan, execute, iterate, persist. Production-correctness rules are hard; everything else is artistic freedom.","https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fvideo-use\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fvideo-use\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":19},"01M7AT6YVX000D73Q40SBPZYKP","venue-templates","Prepare journal manuscripts, conference papers, research posters, and grant documents using venue-specific formatting guidance and bundled LaTeX scaffolds. Use when selecting an official template, checking current page or anonymity rules, adapting academic writing to a venue, or inspecting a submission PDF.","https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fvenue-templates\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":19},"01M7AT6SGGBENKX1G6V8V9G2MJ","vaex","Use this skill for processing and analyzing large tabular datasets (billions of rows) that exceed available RAM. Vaex excels at out-of-core DataFrame operations, lazy evaluation, fast aggregations, efficient visualization of big data, and machine learning on large datasets. Apply when users need to work with large CSV\u002FHDF5\u002FArrow\u002FParquet files, perform fast statistics on massive datasets, create visualizations of big data, or build ML pipelines that do not fit in memory.","https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fvaex\u002FSKILL.md",[],[],{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":19},"01M7AT6HHDJ54MR4HDPFHJYR7G","usfiscaldata","Query the U.S. Treasury Fiscal Data REST API for federal financial data. No API key required. Use for national debt (Debt to the Penny), Daily Treasury Statements, Monthly Treasury Statements, Treasury securities auctions, interest rates, foreign exchange rates, savings bonds, or U.S. government revenue and spending statistics.","https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Fusfiscaldata\u002FSKILL.md",[],[],{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":19},"01M7AT662JFE4THBVAZBB3ANJD","uncertainty-and-units","Track physical units and propagate measurement uncertainty in scientific calculations using pint and uncertainties. Use for unit conversion and dimensional checking, GUM uncertainty budgets, Type A and Type B evaluation, coverage factors and expanded uncertainty, Monte Carlo propagation, significant-figure and plus-minus reporting, error propagation through curve fits, CODATA constants, auditing Python code for stripped units or broken uncertainty propagation, and order-of-magnitude plausibility checks using dimensionless groups (Reynolds, Peclet, Damkohler, Knudsen, Biot, Womersley), characteristic scales such as diffusion time or Debye length, and observed magnitude ranges. Trigger on \"is this number physically reasonable\", \"sanity check these units\", \"what regime is this flow in\", or a result that looks off by orders of magnitude.","https:\u002F\u002Fgithub.com\u002Fnikhilesh-s\u002Fclaude-toolkit\u002Fblob\u002Fnik-claude-toolkit\u002Fskills\u002Funcertainty-and-units\u002FSKILL.md",[],[]]