Estimate State Compression
Estimate the time and cost of a state-compression job before submitting it.
Use this tool to size a compression run up front. It creates no job, spends no credits, and needs no stored circuit — only the qubit count and the parameters planned for the real submission.
When to Use:
- Call this before
compress_circuit_with_state_compressionwhen the user asks how long compression will take or what it will cost. - Call this to compare candidate qubit counts before committing to one.
Constraints:
- The estimate is a projection from the qubit count, not a measurement of the specific circuit, so actual runtime varies with circuit structure.
- This tool is read-only and never creates a compression job.
Notes:
- Report the estimate in seconds and credits, and state plainly that it is an estimate rather than a quote.
Args: user: Authenticated user resolved from the API key. data: Qubit count and compression parameters to estimate.
Returns: The estimated time and cost with an explanatory context string.
Authorizations
Body
Define payload for estimating a state-compression job.
Attributes: num_qubits: Qubit count of the circuit to be compressed. parameters: Compression parameters matching those planned for the real submission.
Response
Successful Response
Represent a pre-submission time and cost estimate.
Attributes: estimated_time: Estimated wall-clock computation time in seconds. estimated_cost: Estimated cost in Haiqu credits. context: Summary of what the estimate covers and how to act on it.