Skip to content

Commit 338fd85

Browse files
committed
Merge branch 'master' of github.com:quantumlib/cirq into v0.3.0-dev
# Conflicts: # cirq/_version.py
2 parents 48fe6c8 + 24772f4 commit 338fd85

File tree

6 files changed

+170
-23
lines changed

6 files changed

+170
-23
lines changed

.readthedocs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
requirements_file: docs/requirements.txt
2+
build:
3+
image: latest
4+
python:
5+
version: 3.6
6+
pip_install: true

README.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ circuits and running them against quantum computers and simulators.
99
:target: https://travis-ci.com/quantumlib/Cirq
1010
:alt: Build Status
1111

12+
.. image:: https://badge.fury.io/py/cirq.svg
13+
:target: https://badge.fury.io/py/cirq
14+
1215
Installation
1316
------------
1417

@@ -65,6 +68,15 @@ Contributing
6568
We welcome contributions. Please follow these
6669
`guidelines <https://github.com/quantumlib/cirq/blob/master/CONTRIBUTING.md>`__.
6770

71+
See Also
72+
--------
73+
74+
For those interested in using quantum computers to solve problems in
75+
chemistry and materials science, we encourage exploring
76+
`OpenFermion <https://github.com/quantumlib/openfermion>`__ and
77+
its sister library for compiling quantum simulation algorithms in Cirq,
78+
`OpenFermion-Cirq <https://github.com/quantumlib/openfermion-cirq>`__.
79+
6880
Disclaimer
6981
----------
7082

docs/api.rst

Lines changed: 138 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ Circuits
1010
:toctree: generated/
1111

1212
Circuit
13-
InsertStrategy
1413
Moment
15-
Schedule
14+
InsertStrategy
15+
OP_TREE
1616

1717

1818
Operations
@@ -22,6 +22,21 @@ Operations
2222
:toctree: generated/
2323

2424
Operation
25+
GateOperation
26+
CompositeOperation
27+
QasmConvertableOperation
28+
29+
30+
Schedules
31+
---------
32+
33+
.. autosummary::
34+
:toctree: generated/
35+
36+
Schedule
37+
ScheduledOperation
38+
Duration
39+
Timestamp
2540

2641
Gates
2742
^^^^^
@@ -32,61 +47,166 @@ Gates
3247
Gate
3348
MeasurementGate
3449

50+
Gate Features and Effects
51+
'''''''''''''''''''''''''
52+
53+
.. autosummary::
54+
:toctree: generated
55+
56+
KnownMatrix
57+
ParameterizableEffect
58+
CompositeGate
59+
ExtrapolatableEffect
60+
ReversibleEffect
61+
InterchangeableQubitsGate
62+
PhaseableEffect
63+
TextDiagrammable
64+
BoundedEffect
65+
SingleQubitGate
66+
TwoQubitGate
67+
QasmConvertableGate
68+
EigenGate
3569

3670
Single Qubit Gates
3771
''''''''''''''''''
3872

3973
.. autosummary::
4074
:toctree: generated/
4175

42-
H
76+
RotXGate
77+
RotYGate
78+
RotZGate
79+
HGate
4380
X
4481
Y
4582
Z
83+
H
84+
S
85+
T
86+
4687

4788
Two Qubit Gates
4889
''''''''''''''''
4990

5091
.. autosummary::
5192
:toctree: generated/
5293

53-
CNOT
94+
Rot11Gate
95+
CNotGate
96+
SwapGate
97+
ISwapGate
5498
CZ
99+
CNOT
100+
ISWAP
101+
102+
Three Qubit Gates
103+
''''''''''''''''''
104+
105+
.. autosummary::
106+
:toctree: generated/
107+
108+
CCZ
109+
CCX
110+
CSWAP
111+
TOFFOLI
112+
FREDKIN
113+
55114

56115
Qubits
57116
------
58117

59-
General classes for qubits.
118+
General classes for qubits and related concepts.
60119

61120
.. autosummary::
62121
:toctree: generated/
63122

64123
QubitId
65124
NamedQubit
125+
LineQubit
126+
GridQubit
127+
QubitOrder
128+
QubitOrderOrList
129+
QubitOrder.DEFAULT
130+
131+
132+
Devices
133+
-------
134+
135+
Classes characterizing constraints of hardware.
66136

67-
See also:
137+
.. autosummary::
138+
:toctree: generated/
68139

69-
* :ref:`Google Qubits <api-google-qubits>`
140+
Device
141+
UnconstrainedDevice
70142

143+
Placement
144+
---------
145+
146+
Classes for placing circuits onto circuits.
147+
148+
.. autosummary::
149+
:toctree: generated/
150+
151+
LinePlacementStrategy
152+
GreedySequenceSearchStrategy
153+
AnnealSequenceSearchStrategy
154+
line_on_device
155+
156+
Parameterization
157+
----------------
158+
159+
Classes for parameterized circuits.
160+
161+
.. autosummary::
162+
:toctree: generated/
163+
164+
Symbol
165+
ParamResolver
166+
Sweep
167+
Points
168+
Linspace
169+
Sweepable
170+
171+
Optimization
172+
------------
173+
174+
Classes for compiling.
175+
176+
.. autosummary::
177+
:toctree: generated/
178+
179+
OptimizationPass
180+
PointOptimizer
181+
PointOptimizationSummary
182+
ExpandComposite
183+
DropEmptyMoments
184+
DropNegligible
71185

72186
Implementations
73187
---------------
74188

75-
Packages to use specific hardware implementations of quantum circuits.
189+
Packages to use specific hardware implementations.
76190

77191
Google
78192
^^^^^^
79193

80-
Quantum hardware implementation by the Google Quantum AI Lab.
194+
Quantum hardware from Google.
81195

82-
Engine
196+
Gates
83197
''''''
84198

85199
.. autosummary::
86200
:toctree: generated/
87201

88-
google.Engine
89-
google.JobConfig
202+
google.XmonGate
203+
google.Exp11Gate
204+
google.ExpWGate
205+
google.ExpZGate
206+
google.XmonMeasurementGate
207+
google.single_qubit_matrix_to_native_gates
208+
google.two_qubit_matrix_to_native_gates
209+
google.ConvertToXmonGates
90210

91211
Devices
92212
'''''''
@@ -96,6 +216,7 @@ Devices
96216

97217
google.Bristlecone
98218
google.Foxtail
219+
google.XmonDevice
99220

100221
Simulator
101222
'''''''''
@@ -108,12 +229,12 @@ Simulator
108229
google.XmonStepResult
109230
google.XmonSimulateTrialResult
110231

111-
.. _api-google-qubits:
112-
113-
Qubits
114-
''''''
232+
Optimizers
233+
''''''''''
115234

116235
.. autosummary::
117236
:toctree: generated/
118237

119-
devices.GridQubit
238+
google.optimized_for_xmon
239+
google.EjectZ
240+
google.EjectFullW

docs/requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
recommonmark >= 0.4.0
22
Sphinx
33
sphinx_rtd_theme
4-
5-
-e ..

python2.7-generate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ cp "${in_dir}/LICENSE" "${out_dir}/LICENSE"
8686
cp "${in_dir}/setup.py" "${out_dir}/setup.py"
8787

8888
# Substitute versions (failing via grep triggering -e if not present.)
89-
grep "python_requires='>=3.5'" "${out_dir}/setup.py" > /dev/null
90-
sed -i "s/python_requires='>=3.5'/python_requires='==2.7.*'/" "${out_dir}/setup.py"
89+
grep "python_requires='>=3.5.3'" "${out_dir}/setup.py" > /dev/null
90+
sed -i "s/python_requires='>=3.5.3'/python_requires='==2.7.*'/" "${out_dir}/setup.py"
9191

9292
# Mark every file as using utf8 encoding.
9393
files_to_update=$(find ${out_dir} | grep "\.py$" | grep -v "_pb2\.py$")

setup.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,16 @@
1919
__version__ = None
2020
exec(open('cirq/_version.py').read())
2121

22+
description = ('A framework for creating, editing, and invoking '
23+
'Noisy Intermediate Scale Quantum (NISQ) circuits.')
24+
2225
# Readme file as long_description:
23-
long_description = io.open('README.rst', encoding='utf-8').read()
26+
long_description = ('====\n'
27+
'Cirq\n'
28+
'====\n')
29+
stream = io.open('README.rst', encoding='utf-8')
30+
stream.readline()
31+
long_description += stream.read()
2432

2533
# Read in requirements
2634
requirements = open('runtime-requirements.txt').readlines()
@@ -36,8 +44,10 @@
3644
url='http://github.com/quantumlib/cirq',
3745
author='The Cirq Developers',
3846
author_email='[email protected]',
39-
python_requires='>=3.5',
47+
python_requires='>=3.5.3',
4048
install_requires=requirements,
4149
license='Apache 2',
50+
description=description,
51+
long_description=long_description,
4252
packages=cirq_packages,
4353
package_data={'cirq.api.google.v1': ['*.proto']})

0 commit comments

Comments
 (0)