QUDORAClient¶
- class QUDORAClient¶
Bases:
QuantumBaseClient[AlgoType,_QudoraJobMeta,QiskitCircuit]Client that executes quantum circuits on QUDORA hardware.
Connects to the QUDORA platform using an API token and runs circuits on the specified device. Accepts any algorithm conforming to
QuantumAlgoProtocolvia the algo parameter.Methods
Initialize a QUDORAClient.
Call the solver service to solve the given optimization problem.
Return the installed
qudora_sdkpackage version.Attributes
Polynomial degrees accepted by the algorithm for the objective and constraints.
The algorithm class used by this client.
Name of the target QUDORA device.
Device-specific settings forwarded to the QUDORA backend on each job submission.
Qiskit transpilation pass manager.
QUDORA API token used to authenticate, or
Noneif not set.QUDORA service URL, or
Noneto use the default endpoint.Algorithm parameters instance.
- __init__(
- algo: type[AlgoType],
- token: str | None = None,
- url: str | None = None,
- device: str = 'Qamelion',
- qiskit_pass_manager: PassManager | EllipsisType | None = Ellipsis,
- device_settings: dict | None = None,
Initialize a QUDORAClient.
- Parameters:
algo (type[AlgoType]) – The algorithm class to use (e.g.,
QAOA).token (str | None) – QUDORA API token. Required to access the service.
url (str | None) – QUDORA service URL. If
None, the default endpoint is selected automatically based on the token prefix.device (str) – Name of the QUDORA device. Defaults to
"Qamelion".qiskit_pass_manager (PassManager | EllipsisType | None) – Custom Qiskit transpilation pass manager. If
...(default), a preset pass manager is generated automatically. PassNoneto skip transpilation.device_settings (dict | None) – Device-specific settings forwarded to the QUDORA backend on each job submission.
- solve(objective: Poly | Matrix, constraints: ConstraintList | None, dry_run: bool = False) CustomClientResultProtocol | None¶
Call the solver service to solve the given optimization problem.
- Parameters:
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 returnNone.
- Returns:
The algorithm result, or
Noneif dry_run isTrue.- Return type:
CustomClientResultProtocol | None
- property acceptable_degrees: AcceptableDegrees¶
Polynomial degrees accepted by the algorithm for the objective and constraints.
- property device_settings: dict | None¶
Device-specific settings forwarded to the QUDORA backend on each job submission.
- parameters¶
Algorithm parameters instance. The concrete type depends on the algorithm; for
QAOAthis isQAOA.Parameters. Modify this to configure the algorithm before callingsolve().