-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy path__init__.py
More file actions
120 lines (105 loc) · 4.35 KB
/
__init__.py
File metadata and controls
120 lines (105 loc) · 4.35 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# Copyright 2018 The Cirq Developers
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Classes for working with Google's Quantum Engine API."""
from cirq_google import api # noqa: F401
from cirq_google._version import __version__ as __version__
from cirq_google.devices import (
GoogleNoiseProperties as GoogleNoiseProperties,
GridDevice as GridDevice,
NoiseModelFromGoogleNoiseProperties as NoiseModelFromGoogleNoiseProperties,
Sycamore as Sycamore,
Sycamore23 as Sycamore23,
)
from cirq_google.engine import (
Calibration as Calibration,
CalibrationLayer as CalibrationLayer,
CalibrationResult as CalibrationResult,
Engine as Engine,
EngineJob as EngineJob,
EngineProgram as EngineProgram,
EngineProcessor as EngineProcessor,
EngineResult as EngineResult,
ProtoVersion as ProtoVersion,
ProcessorSampler as ProcessorSampler,
ValidatingSampler as ValidatingSampler,
get_engine as get_engine,
get_engine_calibration as get_engine_calibration,
get_engine_device as get_engine_device,
get_engine_sampler as get_engine_sampler,
noise_properties_from_calibration as noise_properties_from_calibration,
)
from cirq_google.line import (
AnnealSequenceSearchStrategy as AnnealSequenceSearchStrategy,
GreedySequenceSearchStrategy as GreedySequenceSearchStrategy,
line_on_device as line_on_device,
LinePlacementStrategy as LinePlacementStrategy,
)
from cirq_google.ops import (
AnalogDetuneCouplerOnly as AnalogDetuneCouplerOnly,
AnalogDetuneQubit as AnalogDetuneQubit,
CalibrationTag as CalibrationTag,
Coupler as Coupler,
FSimGateFamily as FSimGateFamily,
FSimViaModelTag as FSimViaModelTag,
InternalGate as InternalGate,
InternalTag as InternalTag,
PhysicalZTag as PhysicalZTag,
SYC as SYC,
SycamoreGate as SycamoreGate,
WILLOW as WILLOW,
WillowGate as WillowGate,
)
from cirq_google.transformers import (
known_2q_op_to_sycamore_operations as known_2q_op_to_sycamore_operations,
two_qubit_matrix_to_sycamore_operations as two_qubit_matrix_to_sycamore_operations,
GoogleCZTargetGateset as GoogleCZTargetGateset,
SycamoreTargetGateset as SycamoreTargetGateset,
)
from cirq_google.serialization import (
arg_from_proto as arg_from_proto,
CIRCUIT_SERIALIZER as CIRCUIT_SERIALIZER,
CircuitSerializer as CircuitSerializer,
CircuitOpDeserializer as CircuitOpDeserializer,
CircuitOpSerializer as CircuitOpSerializer,
Serializer as Serializer,
)
from cirq_google.workflow import (
ExecutableSpec as ExecutableSpec,
KeyValueExecutableSpec as KeyValueExecutableSpec,
QuantumExecutable as QuantumExecutable,
QuantumExecutableGroup as QuantumExecutableGroup,
BitstringsMeasurement as BitstringsMeasurement,
SharedRuntimeInfo as SharedRuntimeInfo,
RuntimeInfo as RuntimeInfo,
ExecutableResult as ExecutableResult,
ExecutableGroupResult as ExecutableGroupResult,
ExecutableGroupResultFilesystemRecord as ExecutableGroupResultFilesystemRecord,
QuantumRuntimeConfiguration as QuantumRuntimeConfiguration,
execute as execute,
QubitPlacer as QubitPlacer,
CouldNotPlaceError as CouldNotPlaceError,
NaiveQubitPlacer as NaiveQubitPlacer,
RandomDevicePlacer as RandomDevicePlacer,
HardcodedQubitPlacer as HardcodedQubitPlacer,
ProcessorRecord as ProcessorRecord,
EngineProcessorRecord as EngineProcessorRecord,
SimulatedProcessorRecord as SimulatedProcessorRecord,
SimulatedProcessorWithLocalDeviceRecord as SimulatedProcessorWithLocalDeviceRecord,
)
from cirq_google import study # noqa: F401
from cirq_google import experimental # noqa: F401
# Register cirq_google's public classes for JSON serialization.
from cirq.protocols.json_serialization import _register_resolver
from cirq_google.json_resolver_cache import _class_resolver_dictionary
_register_resolver(_class_resolver_dictionary)