Skip to content

Commit ebd99f3

Browse files
committed
Remove deprecated constants from cirq_google module
Long past the `v0.16` deprecation deadline. The constant were invalid for almost 2 years after quantumlib#5762.
1 parent 625c2c1 commit ebd99f3

File tree

3 files changed

+2
-38
lines changed

3 files changed

+2
-38
lines changed

cirq-google/cirq_google/__init__.py

-24
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"""Classes for working with Google's Quantum Engine API."""
1616

1717
import sys
18-
from cirq import _compat
1918
from cirq_google import api
2019

2120
from cirq_google._version import __version__
@@ -114,26 +113,3 @@
114113
from cirq_google.json_resolver_cache import _class_resolver_dictionary
115114

116115
_register_resolver(_class_resolver_dictionary)
117-
118-
119-
_SERIALIZABLE_GATESET_DEPRECATION_MESSAGE = (
120-
'SerializableGateSet and associated classes (GateOpSerializer, GateOpDeserializer,'
121-
' SerializingArgs, DeserializingArgs) will no longer be supported.'
122-
' In cirq_google.GridDevice, the new representation of Google devices, the gateset of a device'
123-
' is represented as a cirq.Gateset and is available as'
124-
' GridDevice.metadata.gateset.'
125-
' Engine methods no longer require gate sets to be passed in.'
126-
' In addition, circuit serialization is replaced by cirq_google.CircuitSerializer.'
127-
)
128-
129-
130-
_compat.deprecate_attributes(
131-
__name__,
132-
{
133-
'XMON': ('v0.16', _SERIALIZABLE_GATESET_DEPRECATION_MESSAGE),
134-
'FSIM_GATESET': ('v0.16', _SERIALIZABLE_GATESET_DEPRECATION_MESSAGE),
135-
'SQRT_ISWAP_GATESET': ('v0.16', _SERIALIZABLE_GATESET_DEPRECATION_MESSAGE),
136-
'SYC_GATESET': ('v0.16', _SERIALIZABLE_GATESET_DEPRECATION_MESSAGE),
137-
'NAMED_GATESETS': ('v0.16', _SERIALIZABLE_GATESET_DEPRECATION_MESSAGE),
138-
},
139-
)

docs/google/devices.md

+2-13
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,7 @@ $$
191191
\right]
192192
$$
193193

194-
This gate has a duration of 12ns and can be used in `cirq_google.SYC_GATESET`
195-
or in the `cirq_google.FSIM_GATESET`.
194+
This gate has a duration of 12ns.
196195

197196
#### Square root of iSWAP
198197

@@ -214,8 +213,7 @@ $$
214213
\right]
215214
$$
216215

217-
This gate has a duration of 32ns and can be used in
218-
`cirq_google.SQRT_ISWAP_GATESET` or in the `cirq_google.FSIM_GATESET`.
216+
This gate has a duration of 32ns.
219217

220218
This gate is implemented by using an entangling gate surrounded by
221219
Z gates. The preceding Z gates are physical Z gates and will absorb
@@ -237,15 +235,6 @@ to see if it is available on the processor you are using.
237235
This gate is equivalent to FSimGate(0, π). It has an approximate duration
238236
of 26ns.
239237

240-
#### FSim gateset
241-
242-
The `cirq.FSIM_GATESET` provides all three of the above gates in one set.
243-
In addition, by using this combined gate set, the FSimGate can be parameterized,
244-
which allows for efficient sweeps across varying two-qubit gates.
245-
Note that providing a theta/phi combination that
246-
is not one of the above gates will cause an error when run on hardware.
247-
248-
249238
### Wait gate
250239

251240
For decay experiments and other applications, a WaitGate is provided

docs/google/engine.md

-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ engine = cirq_google.Engine(project_id='YOUR_PROJECT_ID')
193193
# Create a sampler from the engine
194194
job = engine.run_batch(circuit_list,
195195
processor_id='PROCESSOR_ID',
196-
gate_set=cirq_google.FSIM_GATESET,
197196
repetitions=1000,
198197
params_list=param_list)
199198
results = job.results()

0 commit comments

Comments
 (0)