인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
데이터 및 연구 · SKILL.md

skill-028

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.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

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."

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.

저장한 Skills