Skip to content
/ pyQTB Public

Python library for benchmarking quantum tomography methods

License

Notifications You must be signed in to change notification settings

PQCLab/pyQTB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quantum Tomography Benchmarking

Python package for benchmarking quantum tomography (QT) methods. The theory behind the software could be found in [1].

Installation

To install package download the source files and run

python setup.py install

Analyze the QT method benchmarks

The following code shows a basic example of running data collection for a 2-qubit tomography method on random pure states.

from pyqtb import Dimension
from pyqtb.analyze import collect
from pyqtb.tests import rps_test
from pyqtb.methods.proto_fmub import proto_fmub
from pyqtb.methods.est_ppi import est_ppi

dim = Dimension([2, 2])
result = collect(dim, proto_fmub(dim), est_ppi(), rps_test(dim))

To get and print a basic report over benchmarks one runs the following commands.

from pyqtb.analyze import report, as_table

r = report(result)
print(as_table(report))

One can also compare different methods.

from pyqtb.analyze import compare, as_table

r = report([result1, result2])
print(as_table(report))

Module pyqtb.analyze also contains plot functions.

License

All code found in this repository is licensed under GPL v3

References

[1] Bantysh B.I. et al. Quantum tomography benchmarking; arXiv:2012.15656

About

Python library for benchmarking quantum tomography methods

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages