QST
A public Python package to perform quantum state tomography through maximum likelihood estmation
Install / Use
/learn @WilliamBidle/QSTREADME
QST
QST is a public Python package for performing quantum state tomography of quantum states through maximum likelihood estimation. This work is a culmanation of my graduate school masters project at Stony Brook University in the Quantum Information Science & Technology Group under Dr. Eden Figueroa. You can read more about the work in my included masters thesis, Quantum_State_Tomography.pdf.
Installation
QST is avaliable on the Python Package Index PyPI and can be installed through pip:
pip install QST
QST contains two major function libraries for performing quantum state tomography: QSim for simulations and MLE for maximum likelihood estimation.
QST.QSim (Simulation of Quantum Statistics)
Serves to simulate real world examples of quantum states that can be measured through techniques such as Optical Homodyne Detection.
It provides:
- An efficient way of simulating quadrature data for a given quantum state
- Can work with any arbitrary quantum superposition, including coherent states and (WORK IN PROGRESS) squeezed states
Usage:
The Jupyter Notebook QST_Simulation.ipynb in the examples folder contains several working examples of how to easily generate different sets of quadrature data from different quantum states. Datasets from this notebook can be saved to the Data/ subfolder to be used for maximum likelihood reconstruction. The full list of functions, their usage, as well as some examples can be found within the QSim.py file under src/QST/.
QST.MLE (Maximum Likelihood Estimation)
Serves to reconstruct the density matrix of a given quantum state, and can be used to extract amplitude and phase information. Our group has shown it to work with real data gathered in the lab through Homodyne Detection of several different coherent states.
It provides:
- A vectorized method of finding the most likely density matrix corresponding to a given set of quadrature data
- Visualizations of the Wigner distribution of the quantum state through QuTiP
- Relative phase information between different quantum states
Usage:
The Jupyter Notebook MLE.ipynb in the examples folder contains an illustritive working example of how to reconstruct a density matrix given a set of quadrature data. It can easily be used in conjuction with the Generate_Quadratures_Simulation.ipynb. The full list of functions, their usage, as well as some examples can be found within the MLE.py file under src/QST/.
Related Skills
claude-opus-4-5-migration
84.4kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
341.0kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
TrendRadar
50.0k⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
mcp-for-beginners
15.7kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
