Documentation Index
Fetch the complete documentation index at: https://docs.haiqu.ai/llms.txt
Use this file to discover all available pages before exploring further.
How to track your workloads
In the Haiqu SDK, you can make use of experiment tracking to keep your circuits and jobs organized. Every circuit you log and/or execute is connected to an experiment. So are the jobs that you run. Let’s see how this works in the following simple example:Initialize an Experiment
Create a new experiment to keep your circuits and jobs organized.
All your circuits and jobs will now be tracked under this experiment until you initialize a new one.
View and Switch Experiments
List your experiments and switch between them as needed.
If you don’t create an experiment, a default one is used automatically.
Log a Circuit
Add circuits to your experiment for tracking and re-use.
You can now track, analyze, and re-run the logged circuits later.
Run a Job
Execute your logged circuit and track the job’s progress.
Jobs are automatically linked to the experiment and circuit.
All list objects methods, such as
and
Use
haiqu.list_jobs,haiqu.list_circuits and
haiqu.list_experiments by default render an HTML widget and return None.Use
widget=Falsekeyword argument in any of the aforementioned functions to return a list of objects. Alternatively, use pandas=True to return a pandas.DataFrameobject with the same information. See SDK Reference | List Objects for more information and examples.Other use-cases
Here are some additional features you can use when working with experiments.Retrieve lists of experiments, jobs and circuits as objects
In some cases, it is more useful to work with the list of objects, in order to do automated result tracking, advanced filtering, mass job cancellation, or when working outside of Jupyter. By default, when a function likehaiqu.list_experiments, haiqu.list_jobs and haiqu.list_circuits is called, an HTML widget is rendered and displayed in the Jupyter cell output and None is returned. This can be changed by setting keyword argument widget=False in any of such functions. This makes the functions return list[Experiment], list[BaseJobModel] and list[CircuitModel], depending on the function. See SDK Reference | List Objects for more information and examples. A few code snippets are provided below to showcase potential use-cases:
Get list or pandas dataframe of experiments
List circuits from another experiment
By default, only circuits that belong to the current experiment are returned. It is possible to change this by specifying theexperiment_id keyword argument. Use haiqu.list_experiments function to view available experiments.