Skip to main content
POST
/
ai
/
compress_circuit_with_state_compression
Compress Circuit With State Compression
curl --request POST \
  --url 'https://api.example.com/ai/compress_circuit_with_state_compression?HAIQU_API_KEY=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "experiment_id": "<string>",
  "parameters": {},
  "circuit_ids": [
    "<string>"
  ],
  "compression_type": "StateCompression",
  "name": "<string>",
  "circuit_id": "<string>",
  "circuit_qasm": "<string>"
}
'
{
  "context": "<string>"
}

Authorizations

HAIQU_API_KEY
string
query
required

Body

application/json

Define payload for MCP state-compression submissions.

The request may reference either an existing circuit_id or inline circuit_qasm; endpoint-level validation enforces that at least one is present.

Attributes: experiment_id: Parent experiment identifier for the compression job. name: Optional name to use when a new circuit must be created from inline QASM. circuit_id: Existing circuit ID to compress. Deprecated. circuit_ids: Existing circuit IDs to compress. circuit_qasm: Inline QASM source to persist and compress. compression_type: Compression backend or mode identifier. The default value should normally be left unchanged. parameters: Compression configuration forwarded to the backend.

experiment_id
string
required
parameters
Parameters · object
required

State compression options: compression_level (low|balanced|high|max), noise_profile (e.g. default, ibm_heron_r2, iqm_garnet), fine_tuning (disabled|low|heavy), and optional approximation_level (int or null).

circuit_ids
string[] | null

List of existing circuit IDs to compress.

compression_type
string
default:StateCompression
name
string | null

Name for the circuit to compress. Required if circuit_qasm is provided without circuit_id.

circuit_id
string | null

ID of the existing circuit to compress. Deprecated.

circuit_qasm
string | null

Quantum circuit in QASM 2.0 or 3.0 format. Use either this field or circuit_id field to specify the existing circuit ID to compress.

Response

Successful Response

Represent context payload returned after compression job creation.

Attributes: context: Submission summary text including the created job ID and next polling step. This response model does not expose structured job_id or output circuit_id fields outside the text.

context
string
required