Haiqu.log(parent_ctx: CircuitModel | QuantumCircuit | Any = None, child_ctx: Any = None, name: str = None, description: str = None) → str | CircuitModel
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 — The input object to be logged.
- child_ctx — An optional child object, linked to the context of the parent.
- name — An optional name for the logged object.
- description — 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: