Haiqu.list_experiments(widget: bool = True, pandas: bool = False) → list | DataFrame | None
List available experiments.- Parameters:
- widget (bool) — If
True(default), render the list as a Jupyter widget and returnNone. - pandas (bool) — If
True, return the list as a Pandas DataFrame instead of a Python list. Defaults toFalse.
- widget (bool) — If
- Returns:
Experiments in a Python list or Pandas DataFrame, or
None. - Return type: list | pandas.DataFrame | None
Examples
Haiqu.list_circuits(experiment_name: str | None = None, experiment_id: str | None = None, limit: int = 10, widget: bool = True, pandas: bool = False) → list | DataFrame | None
List recent circuits. The circuits are filtered by experiment (name or ID, with the current experiment used if neither is specified), and limited to only the most recent few (10 by default).- Parameters:
- experiment_name (str | None) — Return circuits for the provided experiment name.
- experiment_id (str | None) — Return circuits for the provided experiment ID.
- limit (int) — Limit the number of returned circuits.
- widget (bool) — If
True(default), render the list as a Jupyter widget and returnNone. - pandas (bool) — If
True, return the list as a Pandas DataFrame instead of a Python list. Defaults toFalse.
- Returns:
Circuits in a Python list or Pandas DataFrame, or
None. - Return type: list | pandas.DataFrame | None
Examples
Display a table with a few of the most recent circuits:Haiqu.list_jobs(experiment_id: str | None = None, job_type: JobType | None = None, circuit: CircuitModel | str | None = None, limit: int = 10, widget: bool = True, pandas: bool = False) → str | list | None
List recent jobs. The jobs are filtered by experiment ID (with the current experiment used if not specified) and job type, and limited to only the most recent few (10 by default). Jobs can also be optionally filtered by circuit.- Parameters:
- experiment_id (str | None) — Return jobs for the provided experiment ID.
- job_type (JobType | None) — Filter jobs by type.
- circuit (CircuitModel | str | None) — If not
None, only show the jobs related to the given circuit (as aCircuitModelor circuit ID). - limit (int) — Limit the number of returned jobs.
- widget (bool) — If
True(default), render the list as a Jupyter widget and returnNone. - pandas (bool) — If
True, return the list as a Pandas DataFrame instead of a Python list. Defaults toFalse.
- Returns:
Jobs in a Python list or Pandas DataFrame, or
None. - Return type: list | pandas.DataFrame | None
Examples
Display a table with a few of the most recent jobs:Haiqu.list_devices(widget: bool = True, pandas: bool = False) → list | DataFrame | None
List devices for circuit transpilation and execution. Note that devices in the list may at times be offline or otherwise unavailable.- Parameters:
- widget (bool) — If
True(default), render the list as a Jupyter widget and returnNone. - pandas (bool) — If
True, return the list as a Pandas DataFrame instead of a Python list. Defaults toFalse.
- widget (bool) — If
- Returns:
List of devices, or
None. - Return type: list | pandas.DataFrame | None