Skip to content

Commit

Permalink
Remove quantum engine sampler (#5673)
Browse files Browse the repository at this point in the history
* Minor updates to development page

- Change Foxtail to Sycamore since Foxtail is deprecated.
- Add some clarification that instructions are for linux.

* Remove deprecated QuantumEngineSampler
  • Loading branch information
dstrain115 authored Jul 7, 2022
1 parent 4b6ee22 commit eee2722
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 285 deletions.
1 change: 0 additions & 1 deletion cirq-google/cirq_google/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
EngineProcessor,
EngineResult,
ProtoVersion,
QuantumEngineSampler,
ProcessorSampler,
ValidatingSampler,
get_engine,
Expand Down
4 changes: 2 additions & 2 deletions cirq-google/cirq_google/calibration/phased_fsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ class LocalXEBPhasedFSimCalibrationOptions(XEBPhasedFSimCalibrationOptions):
These "Local" options (corresponding to `LocalXEBPhasedFSimCalibrationRequest`) instruct
`cirq_google.run_calibrations` to execute XEB analysis locally (not via the quantum
engine). As such, `run_calibrations` can work with any `cirq.Sampler`, not just
`QuantumEngineSampler`.
`ProcessorSampler`.
Args:
n_library_circuits: The number of distinct, two-qubit random circuits to use in our
Expand Down Expand Up @@ -864,7 +864,7 @@ class LocalXEBPhasedFSimCalibrationRequest(PhasedFSimCalibrationRequest):
A "Local" request (corresponding to `LocalXEBPhasedFSimCalibrationOptions`) instructs
`cirq_google.run_calibrations` to execute XEB analysis locally (not via the quantum
engine). As such, `run_calibrations` can work with any `cirq.Sampler`, not just
`QuantumEngineSampler`.
`ProcessorSampler`.
Attributes:
options: local-XEB-specific characterization options.
Expand Down
2 changes: 0 additions & 2 deletions cirq-google/cirq_google/engine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@
estimate_run_sweep_time,
)

from cirq_google.engine.engine_sampler import QuantumEngineSampler

from cirq_google.engine.validating_sampler import ValidatingSampler

from cirq_google.engine.virtual_engine_factory import (
Expand Down
4 changes: 2 additions & 2 deletions cirq-google/cirq_google/engine/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ def sampler(self, processor_id: Union[str, List[str]]) -> 'cirq_google.Processor
determining which processors may be used when sampling.
Returns:
A `cirq.Sampler` instance (specifically a `engine_sampler.QuantumEngineSampler`
A `cirq.Sampler` instance (specifically a `engine_sampler.ProcessorSampler`
that will send circuits to the Quantum Computing Service
when sampled.
"""
Expand All @@ -776,7 +776,7 @@ def get_sampler(self, processor_id: Union[str, List[str]]) -> 'cirq_google.Proce
processor_id: String identifier of which processor should be used to sample.
Returns:
A `cirq.Sampler` instance (specifically a `engine_sampler.QuantumEngineSampler`
A `cirq.Sampler` instance (specifically a `engine_sampler.ProcessorSampler`
that will send circuits to the Quantum Computing Service
when sampled.
Expand Down
2 changes: 1 addition & 1 deletion cirq-google/cirq_google/engine/engine_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def get_sampler(self) -> 'cg.engine.ProcessorSampler':
"""Returns a sampler backed by the engine.
Returns:
A `cirq.Sampler` instance (specifically a `engine_sampler.QuantumEngineSampler`
A `cirq.Sampler` instance (specifically a `engine_sampler.ProcessorSampler`
that will send circuits to the Quantum Computing Service
when sampled.1
"""
Expand Down
127 changes: 0 additions & 127 deletions cirq-google/cirq_google/engine/engine_sampler.py

This file was deleted.

149 changes: 0 additions & 149 deletions cirq-google/cirq_google/engine/engine_sampler_test.py

This file was deleted.

1 change: 0 additions & 1 deletion cirq-google/cirq_google/json_test_data/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
'PerQubitDepolarizingWithDampedReadoutNoiseModel',
'SerializingArg',
'THETA_ZETA_GAMMA_FLOQUET_PHASED_FSIM_CHARACTERIZATION',
'QuantumEngineSampler',
'ProcessorSampler',
'ValidatingSampler',
'CouldNotPlaceError',
Expand Down

0 comments on commit eee2722

Please sign in to comment.