RigettiClient

class RigettiClient

ベースクラス: QuantumBaseClient[AlgoType, BraketJobMeta, QiskitCircuit]

Client that executes quantum circuits on Rigetti hardware via Amazon Braket.

Connects to Rigetti superconducting devices through the Amazon Braket service and runs circuits on the specified device. Accepts any algorithm conforming to QuantumAlgoProtocol via the algo parameter.

Methods

__init__

Initialize a RigettiClient.

solve

Call the solver service to solve the given optimization problem.

version

Return the backend version string.

Attributes

acceptable_degrees

Polynomial degrees accepted by the algorithm for the objective and constraints.

algo

The algorithm class used by this client.

device

Name of the target Rigetti device.

provider

Provider used to connect to the Rigetti device.

parameters

Algorithm parameters instance.

__init__(
algo: type[AlgoType],
device: str = 'Ankaa3',
provider: AwsSession | None = None,
) None

Initialize a RigettiClient.

パラメータ:
  • algo (type[AlgoType]) -- The algorithm class to use (e.g., QAOA).

  • device (str) -- Name or ARN of the Rigetti device. Defaults to the first non-underscore member of braket.devices.Devices.Rigetti.

  • provider (AwsSession | None) -- Provider used to connect to the Rigetti device. Currently only Braket connection is supported; set to an braket.aws.AwsSession to configure credentials.

solve(
objective: Poly | Matrix,
constraints: ConstraintList | None,
dry_run: bool = False,
) CustomClientResultProtocol | None

Call the solver service to solve the given optimization problem.

パラメータ:
  • objective (Poly | Matrix) -- The objective function to minimize.

  • constraints (ConstraintList | None) -- Constraints for the problem. If None, no constraints are applied.

  • dry_run (bool) -- If True, validate inputs without executing circuits and return None.

戻り値:

The algorithm result, or None if dry_run is True.

戻り値の型:

CustomClientResultProtocol | None

version() str

Return the backend version string.

property acceptable_degrees: AcceptableDegrees

Polynomial degrees accepted by the algorithm for the objective and constraints.

property algo: type[AlgoType]

The algorithm class used by this client.

property device: str

Name of the target Rigetti device.

parameters

Algorithm parameters instance. The concrete type depends on the algorithm; for QAOA this is QAOA.Parameters. Modify this to configure the algorithm before calling solve().

property provider: AwsSession | None

Provider used to connect to the Rigetti device.

Currently only Braket connection is supported; set to an braket.aws.AwsSession to configure credentials. Set to None to clear configured credentials.