uniqc.backend_adapter.task.adapters.quark_adapter module¶
QuarkStudio / Quafu-SQC backend adapter.
QuarkStudio replaces the deprecated pyquafu client for the BAQIS Quafu-SQC platform. Its public SDK accepts OpenQASM 2.0 text inside a task dictionary:
{“chip”: “Baihua”, “name”: “…”, “circuit”: qasm2, “shots”: 1024, …}
This adapter keeps that SDK boundary intact and exposes the same
QuantumAdapter interface used by the rest of UnifiedQuantum.
- class uniqc.backend_adapter.task.adapters.quark_adapter.QuarkAdapter(token=None, task_client=None)[source]¶
Bases:
QuantumAdapterAdapter for QuarkStudio’s Quafu-SQC
TaskAPI.- Parameters:
token (str | None)
task_client (Any | None)
- dry_run(originir, *, shots=1024, **kwargs)[source]¶
Validate OriginIR -> OpenQASM 2.0 locally without network calls.
- Parameters:
- Return type:
- get_backend_info(chip='Baihua')[source]¶
Fetch detailed backend information when quarkcircuit is installed.
- is_available()[source]¶
Return True when the SDK is importable and a token is configured.
- Return type:
- submit(circuit, *, shots=1024, **kwargs)[source]¶
Submit a single OpenQASM 2.0 circuit to QuarkStudio.