Skip to main content

Haiqu Log

Haiqu.log(parent_ctx=None, child_ctx=None, name=None, description=None)

Record data to the Haiqu cloud based on the context (e.g., circuit, or any other relevant information). This method functions similarly to a generic logger, in the same vein as the log method of the Weights & Biases Python SDK for machine learning.
  • Parameters:
    • parent_ctx (CircuitModel | QuantumCircuit | Any) — The input object to be logged.
    • child_ctx (Any) — An optional child object, linked to the context of the parent.
    • name (str) — An optional name for the logged object.
    • description (str) — An optional description if logging a circuit.
  • Returns: Status message, circuit metadata.
  • Return type: str | CircuitModel

Examples

If used without parameters, haiqu.log() displays the nice widget with help. Try it out:
This function always acts in the context of the current experiment. If the circuit metadata object (CircuitModel) is passed as the first argument, it will log data to that circuit.

Log metrics

Log a circuit

Log the Matplotlib plt object

Log the Pandas DataFrame

Log the Drawer plot

Log the Matplotlib figure

You can see logged data on Dashboard: https://dashboard.haiqu.ai