uniqc.backend_adapter.task.adapters.quark_adapter module¶
QuarkStudio (BAQIS ScQ cloud) backend adapter.
QuarkStudio is the official SDK for the BAQIS superconducting quantum cloud 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
TaskAPI.- dry_run(originir, *, shots=1024, **kwargs)[source]¶
Validate OriginIR -> OpenQASM 2.0 locally without network calls.
- get_backend_info(chip='Baihua')[source]¶
Fetch detailed backend information when quarkcircuit is installed.
- get_chip_characterization(chip_name)[source]¶
Return per-qubit and per-pair calibration data for a Quark chip.
- Parameters:
chip_name – QuarkStudio chip name, e.g.
"Baihua".- Returns:
None when
quarkcircuitis not installed or the chip metadata cannot be loaded.- Return type:
ChipCharacterization or None
- name = 'quark'¶
- submit(circuit, *, shots=1024, **kwargs)[source]¶
Submit a single OpenQASM 2.0 circuit to QuarkStudio.