tqix: A toolbox for Quantum in X: X: Quantum measurement, quantum tomography, quantum metrology, and others

Le Bin Ho, Kieu Quang Tuan, Hung Q. Nguyen

Research output: Contribution to journalArticlepeer-review

1 Citation (Scopus)


We present an open-source computer program written in Python language for quantum measurement and related issues. In our program, quantum states and operators, including quantum gates, can be developed into a quantum-object function represented by a matrix. Build into the program are several measurement schemes, including von Neumann measurement and weak measurement. Various numerical simulation methods are used to mimic the real experiment results. We first provide an overview of the program structure and then discuss the numerical simulation of quantum measurement. We illustrate the program's performance via quantum state tomography and quantum metrology. The program is built in a general language of quantum physics and thus is widely adaptable to various physical platforms, such as quantum optics, ion traps, superconducting circuit devices, and others. It is also ideal to use in classroom guidance with simulation and visualization of various quantum systems. Program summary: Program Title: tqix: A toolbox for Quantum in X X: Quantum measurement, quantum tomography, quantum metrology, and others. CPC Library link to program files: https://doi.org/10.17632/wxvncw5jkv.1 Developer's repository link: https://vqisinfo.wixsite.com/tqix Code Ocean capsule: https://codeocean.com/capsule/0814109 Licensing provisions: GPLv3 Programming language: Python External routines: NumPy, SciPy, Matplotlib. Nature of problem: tqix is an open-source program providing some convenient tools for quantum measurement, quantum tomography, quantum metrology, and others. Solution method: For quantum measurement, the von Neumann formalism and weal measurement have been used, where the measurement results can be obtained analytically or numerically (simulation) via various back-ends, including the Monte Carlo (mc) and Cumulative Distribution Function (cdf). There is also built-in quantum state tomography using the direct state measurement method, and some common tools for studying quantum metrology.

Original languageEnglish
Article number107902
JournalComputer Physics Communications
Publication statusPublished - 2021 Jun


  • Quantum measurement
  • Quantum metrology
  • Quantum software
  • Quantum tomography
  • Quantum toolbox

ASJC Scopus subject areas

  • Hardware and Architecture
  • Physics and Astronomy(all)


Dive into the research topics of 'tqix: A toolbox for Quantum in X: X: Quantum measurement, quantum tomography, quantum metrology, and others'. Together they form a unique fingerprint.

Cite this