skill-147
A skill for visualizing quantum states and dynamics using QuTiP's advanced plotting capabilities. Perfect for researchers who want to create intuitive visual representations of quantum systems and their behavior over time.
- License 许可
- MIT
- 最近更新
- 2026-06-04
- Stars
- ★ 8
- Forks
- 2
01 前言 Front Matter
- name
- skill-147
- description
- A skill for visualizing quantum states and dynamics using QuTiP's advanced plotting capabilities. Perfect for researchers who want to create intuitive visual representations of quantum systems and their behavior over time.
03 SKILL.md 正文
QuTiP Visualization Tools
Overview
QuTiP provides powerful visualization tools to help researchers and educators illustrate quantum phenomena. This skill focuses on generating graphs and plots for quantum states, operators, and dynamics.
Installation
uv pip install qutip
Quick Start
from qutip import *
import numpy as np
# Create a quantum state
psi = basis(2, 0) # Ground state |0⟩
# Visualize the state on the Bloch sphere
plot_bloch(psi) # Interactive Bloch sphere
Core Capabilities
1. Quantum State Visualization
Visualize quantum states on the Bloch sphere:
# Generate a superposition state
psi = (basis(2, 0) + basis(2, 1)).unit() # |0⟩ + |1⟩
# Plot the state on the Bloch sphere
plot_bloch(psi)
2. Dynamics of Quantum Systems
Plot time evolution of observables:
H = sigmax() # Hamiltonian
psi0 = basis(2, 0) # Initial state
tlist = np.linspace(0, 10, 100)
result = sesolve(H, psi0, tlist, e_ops=[sigmaz()])
# Plot the expectation value over time
plt.plot(tlist, result.expect[0])
plt.xlabel('Time')
plt.ylabel('⟨σz⟩')
plt.title('Time Evolution of ⟨σz⟩')
plt.show()
3. Advanced Visualization Techniques
Use advanced techniques to visualize correlation functions and more:
# Visualize Wigner function for a coherent state
alpha = 1.0
rho_coherent = coherent_dm(10, alpha)
plot_wigner(rho_coherent)
plt.title('Wigner Function of Coherent State')
plt.show()
4. Custom Plots
Create custom plots for specific needs:
# Custom plot function
def custom_plot(result, title):
plt.figure()
plt.plot(result.times, result.expect[0])
plt.title(title)
plt.xlabel('Time')
plt.ylabel('Expectation Value')
plt.grid()
plt.show()
custom_plot(result, 'Custom Expectation Value Plot')
Conclusion
The visualization tools offered by QuTiP enhance the understanding of quantum mechanics by providing intuitive graphical representations. This skill empowers researchers to communicate their findings effectively.
04 同仓库更多 Skills
foo
A test skill named foo
bar
飞书 — bar with quoted Chinese
agentic-skill-router
First use any clearly matching enabled local/user Agent Skill. If none matches, prefer this router for skill-shaped requests involving a named tool, API, service, CLI, platform, file format, dataset, or domain workflow, including when a generic built-in skill such as browser, Chrome, or web search also seems applicable; use built-ins directly only when explicitly requested or when the task is primarily live browsing, logged-in page operation, clicking, screenshotting, or current webpage inspection. Also use directly to audit, slim, disable, restore, or route locally installed Agent Skills across supported hosts. Examples include Vercel, Netlify, Cloudflare, Render, Playwright, Sentry, Linear, GitHub, OpenAI APIs, PDF, DOCX, PPTX, and spreadsheets.
syn-video-trim
Skill for trimming and cutting clips in the context of video files. Use when the user's task is specifically about trimming and cutting clips.
syn-video-transcode
Skill for transcoding codecs and resolutions in the context of video files. Use when the user's task is specifically about transcoding codecs and resolutions.
syn-video-thumbnail
Skill for extracting thumbnails and frames in the context of video files. Use when the user's task is specifically about extracting thumbnails and frames.