![]() |
THIS FUNCTION IS DEPRECATED.
cirq_rigetti.service.get_rigetti_qcs_service(
quantum_processor_id: str,
*,
as_qvm: Optional[bool] = None,
noisy: Optional[bool] = None,
executor: cirq_rigetti.circuit_sweep_executors.CircuitSweepExecutor
= cirq_rigetti.circuit_sweep_executors.with_quilc_compilation_and_cirq_parameter_resolution
,
transformer: cirq_rigetti.circuit_transformers.CircuitTransformer
= cirq_rigetti.circuit_transformers.default
) -> cirq_rigetti.service.RigettiQCSService
IT WILL BE REMOVED IN cirq v1.6
.
Cirq-Rigetti is deprecated. For more details or to provide feedback see https://github.com/quantumlib/Cirq/issues/7058
Calls pyquil.get_qc
to initialize a pyquil.api.QuantumComputer
and uses
this to initialize RigettiQCSService
.
Args:
quantum_processor_id: The name of the desired quantum computer. This should
correspond to a name returned by `pyquil.api.list_quantum_computers`. Names
ending in "-qvm" will return a QVM. Names ending in "-pyqvm" will return a
`pyquil.PyQVM`. Otherwise, we will return a Rigetti QCS QPU if one exists
with the requested name.
as_qvm: An optional flag to force construction of a QVM (instead of a QPU). If
specified and set to `True`, a QVM-backed quantum computer will be returned regardless
of the name's suffix
noisy: An optional flag to force inclusion of a noise model. If
specified and set to `True`, a quantum computer with a noise model will be returned.
The generic QVM noise model is simple T1 and T2 noise plus readout error. At the time
of this writing, this has no effect on a QVM initialized based on a Rigetti QCS
`qcs_api_client.models.InstructionSetArchitecture`.
executor: A callable that first uses the below transformer on cirq.Circuit s and
then executes the transformed circuit on the quantum_computer. You may pass your
own callable or any static method on CircuitSweepExecutors.
transformer: A callable that transforms the cirq.Circuit into a pyquil.Program.
You may pass your own callable or any static method on CircuitTransformers.
Returns:
A `RigettiQCSService` with the specified quantum processor, executor, and transformer.