forked from sandialabs/pyGSTi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
60 lines (50 loc) · 3.46 KB
/
setup.py
File metadata and controls
60 lines (50 loc) · 3.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
"""A python implementation of Gate Set Tomography"""
from distutils.core import setup
#execfile("packages/pygsti/_version.py")
# 3.0 changes the way exec has to be called
with open("packages/pygsti/_version.py") as f:
code = compile(f.read(), "packages/pygsti/_version.py", 'exec')
exec(code)
classifiers = """\
Development Status :: 4 - Beta
Intended Audience :: Science/Research
License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Programming Language :: Python
Topic :: Scientific/Engineering :: Physics
Operating System :: Microsoft :: Windows
Operating System :: MacOS :: MacOS X
Operating System :: Unix
"""
descriptionTxt = """\
Gate set tomography (GST) is a quantum tomography protocol that provides full characterization of a quantum logic device (e.g. a qubit). GST estimates a set of quantum logic gates and (simultaneously) the associated state preparation and measurement (SPAM) operations. GST is self-calibrating. This eliminates a key limitation of traditional quantum state and process tomography, which characterize either states (assuming perfect processes) or processes (assuming perfect state preparation and measurement), but not both together. Compared with benchmarking protocols such as randomized benchmarking, GST provides much more detailed and accurate information about the gates, but demands more data. The primary downside of GST has been its complexity. Whereas benchmarking and state/process tomography data can be analyzed with relatively simple algorithms, GST requires more complex algorithms and more fine-tuning (linear GST is an exception that can be implemented easily). pyGSTi addresses and eliminates this obstacle by providing a fully-featured, publicly available implementation of GST in the Python programming language.
The primary goals of the pyGSTi project are to:
- provide efficient and robust implementations of Gate Set Tomography algorithms;
- allow straightforward interoperability with other software;
- provide a powerful high-level interface suited to inexperienced programmers, so that
common GST tasks can be performed using just one or two lines of code;
- use modular design to make it easy for users to modify, customize, and extend GST functionality.
"""
setup(name='pyGSTi',
version=__version__,
description='A python implementation of Gate Set Tomography',
long_description=descriptionTxt,
author='Erik Nielsen, Kenneth Rundinger, John Gamble, Robin Blume-Kohout',
author_email='pygsti@sandia.gov',
packages=['pygsti', 'pygsti.algorithms', 'pygsti.construction', 'pygsti.drivers', 'pygsti.io', 'pygsti.objects', 'pygsti.optimize', 'pygsti.report', 'pygsti.tools'],
package_dir={'': 'packages'},
package_data={'pygsti.report': ['templates/*.tex', 'templates/*.pptx']},
requires=['numpy','scipy','matplotlib','pyparsing'],
extras_require = {
'diamond norm computation': ['cvxpy', 'cvxopt'],
'powerpoint file generation': ['python-pptx'],
'nose testing' : ['nose'],
'image comparison' : ['Pillow'],
'accurate memory profiling' : ['psutil']
},
platforms = ["any"],
url = 'http://www.pygsti.info',
download_url = 'https://github.com/pyGSTio/pyGSTi/tarball/master',
keywords = ['pygsti', 'tomography', 'gate set', 'pigsty', 'pig', 'quantum', 'qubit'],
classifiers = filter(None, classifiers.split("\n")),
)
#other optional requirements: deap, pptx, Pillow, cvxpy