skill-028
A skill for reconstructing quantum states from measurement data using quantum state tomography techniques. Use when you need to derive the density matrix of a quantum system from experimental measurements, allowing for the verification of quantum states in various quantum experiments.
- License 许可
- MIT
- 最近更新
- 2026-06-04
- Stars
- ★ 8
- Forks
- 2
01 前言 Front Matter
- name
- skill-028
- description
- A skill for reconstructing quantum states from measurement data using quantum state tomography techniques. Use when you need to derive the density matrix of a quantum system from experimental measurements, allowing for the verification of quantum states in various quantum experiments.
03 SKILL.md 正文
Quantum State Tomography
Overview
Quantum state tomography is a process used to reconstruct the quantum state of a system based on measurement outcomes. This skill provides tools for efficiently performing quantum state tomography using available measurement data.
Installation
uv pip install qst
Quick Start
import numpy as np
from qst import StateTomography
# Simulated measurement outcomes
measurement_data = np.array([[0, 1], [1, 0], [1, 1]]) # Example outcomes
# Create a StateTomography object
qst = StateTomography(measurement_data)
# Perform state reconstruction
rho_estimated = qst.reconstruct()
print(rho_estimated)
Core Capabilities
1. Measurement Data Handling
Handle measurement data efficiently:
# Load measurement results from a file
measurement_data = np.loadtxt('measurements.txt')
# Filter data based on specific criteria
filtered_data = qst.filter_data(measurement_data, threshold=0.5)
2. State Reconstruction
Reconstruct quantum states using various algorithms:
# Maximum likelihood estimation
rho_ml = qst.max_likelihood()
# Linear inversion
rho_inv = qst.linear_inversion()
3. Visualization of Results
Visualize the reconstructed density matrix:
import matplotlib.pyplot as plt
qst.visualize_density_matrix(rho_estimated)
plt.title('Reconstructed Density Matrix')
plt.show()
4. Performance Metrics
Evaluate performance:
fidelity = qst.calculate_fidelity(rho_estimated, true_state)
print(f'Fidelity: {fidelity}')
Conclusion
Quantum state tomography is essential for verifying and analyzing quantum systems. The tools provided in this skill facilitate the reconstruction of quantum states from experimental data, crucial for advancing quantum information science.
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.