मुख्य सामग्री पर जाएँ
Skillpedia
एनालिसिस और स्प्रेडशीट5.6k · #14770

qutip

यह क्या करती है

यह स्किल एजेंट को Python में QuTiP लाइब्रेरी से क्वांटम भौतिकी सिमुलेशन चलाना सिखाती है। यह भौतिकी शोध और शिक्षण के लिए है, क्वांटम कंप्यूटिंग सर्किट बनाने के लिए नहीं।

कब इस्तेमाल करें

  • ✓जब भौतिकीविद् को डीकोहेरेंस या Lindblad मास्टर समीकरण सिमुलेट करना हो।
  • ✓जब शोधकर्ता संख्यात्मक मॉडल से क्वांटम ऑप्टिक्स या कैविटी QED पढ़ता है।
  • ✓जब छात्र को भौतिकी पाठ के लिए सरल क्वांटम सिमुलेशन चाहिए।

Skill का लिंक

https://github.com/zLanqing/codex-claude-academic-skills/blob/main/scientific-toolkit-skill/references/scientific-skills/qutip/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/zLanqing/codex-claude-academic-skills/blob/main/scientific-toolkit-skill/references/scientific-skills/qutip/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“Python स्क्रिप्ट में सिमुलेट कीजिए कि समय के साथ मेरा क्यूबिट कैसे डीकोहेर होता है, और नतीजा प्लॉट कीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट क्वांटम अवस्थाएँ और ऑपरेटर बनाता है, सिस्टम के लिए सॉल्वर चुनता है, और समय की सूची पर बदलाव की गणना करता है। फिर वह अपेक्षित मानों का प्लॉट बनाता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

QuTiP: Quantum Toolbox in Python

Overview

QuTiP provides comprehensive tools for simulating and analyzing quantum mechanical systems. It handles both closed (unitary) and open (dissipative) quantum systems with multiple solvers optimized for different scenarios.

Installation

uv pip install qutip

Optional packages for additional functionality:

# Quantum information processing (circuits, gates)
uv pip install qutip-qip

# Quantum trajectory viewer
uv pip install qutip-qtrl

Quick Start

from qutip import *
import numpy as np
import matplotlib.pyplot as plt

# Create quantum state
psi = basis(2, 0)  # |0⟩ state

# Create operator
H = sigmaz()  # Hamiltonian

# Time evolution
tlist = np.linspace(0, 10, 100)
result = sesolve(H, psi, tlist, e_ops=[sigmaz()])

# Plot results
plt.plot(tlist, result.expect[0])
plt.xlabel('Time')
plt.ylabel('⟨σz⟩')
plt.show()

Core Capabilities

1. Quantum Objects and States

Create and manipulate quantum states and operators:

# States
psi = basis(N, n)  # Fock state |n⟩
psi = coherent(N, alpha)  # Coherent state |α⟩
rho = thermal_dm(N, n_avg)  # Thermal density matrix

# Operators
a = destroy(N)  # Annihilation operator
H = num(N)  # Number operator
sx, sy, sz = sigmax(), sigmay(), sigmaz()  # Pauli matrices

# Composite systems
psi_AB = tensor(psi_A, psi_B)  # Tensor product

See references/core_concepts.md for comprehensive coverage of quantum objects, states, operators, and tensor products.

2. Time Evolution and Dynamics

Multiple solvers for different scenarios:

# Closed systems (unitary evolution)
result = sesolve(H, psi0, tlist, e_ops=[num(N)])

# Open systems (dissipation)
c_ops = [np.sqrt(0.1) * destroy(N)]  # Collapse operators
result = mesolve(H, psi0, tlist, c_ops, e_ops=[num(N)])

# Quantum trajectories (Monte Carlo)
result = mcsolve(H, psi0, tlist, c_ops, ntraj=500, e_ops=[num(N)])

Solver selection guide:

  • sesolve: Pure states, unitary evolution
  • mesolve: Mixed states, dissipation, general open systems
  • mcsolve: Quantum jumps, photon counting, individual trajectories
  • brmesolve: Weak system-bath coupling
  • fmmesolve: Time-periodic Hamiltonians (Floquet)

See references/time_evolution.md for detailed solver documentation, time-dependent Hamiltonians, and advanced options.

3. Analysis and Measurement

Compute physical quantities:

# Expectation values
n_avg = expect(num(N), psi)

# Entropy measures
S = entropy_vn(rho)  # Von Neumann entropy
C = concurrence(rho)  # Entanglement (two qubits)

# Fidelity and distance
F = fidelity(psi1, psi2)
D = tracedist(rho1, rho2)

# Correlation functions
corr = correlation_2op_1t(H, rho0, taulist, c_ops, A, B)
w, S = spectrum_correlation_fft(taulist, corr)

# Steady states
rho_ss = steadystate(H, c_ops)

See references/analysis.md for entropy, fidelity, measurements, correlation functions, and steady state calculations.

4. Visualization

Visualize quantum states and dynamics:

# Bloch sphere
b = Bloch()
b.add_states(psi)
b.show()

# Wigner function (phase space)
xvec = np.linspace(-5, 5, 200)
W = wigner(psi, xvec, xvec)
plt.contourf(xvec, xvec, W, 100, cmap='RdBu')

# Fock distribution
plot_fock_distribution(psi)

# Matrix visualization
hinton(rho)  # Hinton diagram
matrix_histogram(H.full())  # 3D bars

See references/visualization.md for Bloch sphere animations, Wigner functions, Q-functions, and matrix visualizations.

5. Advanced Methods

Specialized techniques for complex scenarios:

# Floquet theory (periodic Hamiltonians)
T = 2 * np.pi / w_drive
f_modes, f_energies = floquet_modes(H, T, args)
result = fmmesolve(H, psi0, tlist, c_ops, T=T, args=args)

# HEOM (non-Markovian, strong coupling)
from qutip.nonmarkov.heom import HEOMSolver, BosonicBath
bath = BosonicBath(Q, ck_real, vk_real)
hsolver = HEOMSolver(H_sys, [bath], max_depth=5)
result = hsolver.run(rho0, tlist)

# Permutational invariance (identical particles)
psi = dicke(N, j, m)  # Dicke states
Jz = jspin(N, 'z')  # Collective operators

See references/advanced.md for Floquet theory, HEOM, permutational invariance, stochastic solvers, superoperators, and performance optimization.

Common Workflows

Simulating a Damped Harmonic Oscillator

# System parameters
N = 20  # Hilbert space dimension
omega = 1.0  # Oscillator frequency
kappa = 0.1  # Decay rate

# Hamiltonian a
अक्सर पूछे जाने वाले सवाल

क्या यह असली हार्डवेयर पर क्वांटम सर्किट चला सकती है?

नहीं। स्किल कहती है कि सर्किट-आधारित क्वांटम कंप्यूटिंग qiskit, cirq या pennylane जैसी दूसरी लाइब्रेरी का काम है।

QuTiP कैसे इंस्टॉल होती है?

स्किल कहती है कि uv pip install qutip से इंस्टॉल करें, वैकल्पिक ऐड-ऑन पैकेज के साथ।

क्या यह ओपन क्वांटम सिस्टम संभालती है?

हाँ। स्किल कहती है कि यह बंद और खुले, डिसिपेटिव दोनों तरह के सिस्टम कवर करती है।

जानकारी

लेखक का मूल विवरण

Quantum physics simulation library for open quantum systems. Use when studying master equations, Lindblad dynamics, decoherence, quantum optics, or cavity QED. Best for physics research, open system dynamics, and educational simulations. NOT for circuit-based quantum computing—use qiskit, cirq, or pennylane for quantum algorithms and hardware execution.

repo: zLanqing/codex-claude-academic-skills

लोकप्रियता

GitHub स्टार
5.6k
रैंकिंग में स्थान
#14770
लाइसेंस
MIT
अपडेट की गई
14/5/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

office-academic-skill

5.6k

आपके एजेंट को रिसर्च पेपर को Word रिपोर्ट में बदलने और संपादन योग्य चीनी-प्रधान शैक्षिक PowerPoint स्लाइड बनाने देती है, स्पीकर नोट्स और लेआउट जाँच के साथ।

लेखन और डॉक्यूमेंटPDF, Word और स्लाइड

research-writing-skill

5.6k

आपके एजेंट को रिसर्च पेपर के भाग, सार और रिव्यूअर के जवाब लिखने, संशोधित करने और निखारने देती है, सूत्र, शीर्षक और उद्धरण जैसे दिए गए हैं वैसे ही रखते हुए।

लेखन और डॉक्यूमेंटलेखन

scientific-toolkit-skill

5.6k

आपके एजेंट को सिग्नल और इमेज प्रोसेसिंग, सांख्यिकी, सिमुलेशन और प्रकाशन-योग्य चित्रों के लिए MATLAB या Python वैज्ञानिक कोड लिखने और डीबग करने देती है।

डेटाएनालिसिस और स्प्रेडशीट

matlab

5.6k

आपके एजेंट को मैट्रिक्स गणित, सिग्नल और इमेज प्रोसेसिंग, अवकल समीकरण, ऑप्टिमाइज़ेशन और प्लॉट के लिए MATLAB और GNU Octave स्क्रिप्ट लिखने और डीबग करने देती है।

डेटाएनालिसिस और स्प्रेडशीट

मिलती-जुलती skills