A quantum state distinguisher with minimum theoretical worst-case probability of error.
Project description
Helstrom ·
Helstrom is a quantum state distinguisher with minimum theoretical worst-case probability of error.
Features
- Distinguish two qubits with minimum worst-case error.
- Obtain POVMs and min_pwc.
- Support for qudits and entangled states coming soon!
- PyPI package coming soon!
Tech
Helstrom uses a number of open source projects to work properly:
- CVXPY - Python-embedded modeling language for convex optimization problems!
- MOSEK - The package for large scale convex, conic and mixed-integer optimization.
- NumPy - The fundamental package for scientific computing with Python.
And of course Helstrom itself is a free and open-source software with a public repository on GitHub.
Installation
Helstrom has been developed and tested to run on Python 3.8.
Install Python if you have not already. Download the code as ZIP, and extract it and enter the folder. Install the dependencies by typing the following command on your terminal:
cd helstrom-main # Change directory into child directory
pip install -r requirements.txt
Under the if __name__ == "__main__":
heading, modify rho_0 and rho_1 to desired state.
Now run helstromSDP.py
directly, or via the following command on the terminal:
python -m helstromSDP
By default, the states of rho_0 and rho_1 is:
rho_0 = [ 1 0 ] rho_1 = [ 0.5 0 ]
[ 0 0 ] [ 0 0.5 ]
Development
Want to contribute? Great!
Helstrom uses Python for developing. Make changes in your file and create a pull request!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.