forked from quantumlib/Cirq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspec.py
70 lines (68 loc) · 2.22 KB
/
spec.py
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
# pylint: disable=wrong-or-nonexistent-copyright-notice
import pathlib
import cirq_google
from cirq.testing.json import ModuleJsonTestSpec
from cirq_google.json_resolver_cache import _class_resolver_dictionary
TestSpec = ModuleJsonTestSpec(
name="cirq_google",
packages=[cirq_google, cirq_google.experimental],
test_data_path=pathlib.Path(__file__).parent,
not_yet_serializable=[
'Sycamore',
'Sycamore23',
'SQRT_ISWAP_INV_PARAMETERS',
'ALL_ANGLES_FLOQUET_PHASED_FSIM_CHARACTERIZATION',
'WITHOUT_CHI_FLOQUET_PHASED_FSIM_CHARACTERIZATION',
],
should_not_be_serialized=[
'AnnealSequenceSearchStrategy',
'CircuitOpDeserializer',
'CircuitOpSerializer',
'CircuitSerializer',
'CIRCUIT_SERIALIZER',
'CircuitWithCalibration',
'Engine',
'EngineJob',
'EngineProcessor',
'EngineProgram',
'FSimPhaseCorrections',
'NoiseModelFromGoogleNoiseProperties',
'ProtoVersion',
'GreedySequenceSearchStrategy',
'PhasedFSimCalibrationError',
'PhasedFSimEngineSimulator',
'PerQubitDepolarizingWithDampedReadoutNoiseModel',
'THETA_ZETA_GAMMA_FLOQUET_PHASED_FSIM_CHARACTERIZATION',
'ProcessorSampler',
'ValidatingSampler',
'CouldNotPlaceError',
# Abstract:
'ExecutableSpec',
],
custom_class_name_to_cirq_type={
k: f'cirq.google.{k}'
for k in [
'BitstringsMeasurement',
'QuantumExecutable',
'QuantumExecutableGroup',
'KeyValueExecutableSpec',
'ExecutableResult',
'ExecutableGroupResult',
'QuantumRuntimeConfiguration',
'RuntimeInfo',
'SharedRuntimeInfo',
'ExecutableGroupResultFilesystemRecord',
'NaiveQubitPlacer',
'RandomDevicePlacer',
'HardcodedQubitPlacer',
'EngineProcessorRecord',
'SimulatedProcessorRecord',
'SimulatedProcessorWithLocalDeviceRecord',
'EngineResult',
'GridDevice',
'GoogleCZTargetGateset',
]
},
resolver_cache=_class_resolver_dictionary(),
deprecated={},
)