cirq_rigetti.service.get_rigetti_qcs_service
Calls pyquil.get_qc
to initialize a pyquil.api.QuantumComputer
and uses this to initialize RigettiQCSService
.
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
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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-27 UTC."],[],[]]