Skip to content
HALOWERK

Quantumwerk

circuit shot variance allocation

Return bounded variance-weighted shot allocations and the resulting independent estimator-variance model.

POST https://quantum.halowerk.com/v1/circuit-shot-variance-allocation

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
shotsintegerYes
termsarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "shots": {
      "type": "integer",
      "minimum": 1,
      "maximum": 1000000
    },
    "terms": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 32,
            "minLength": 1
          },
          "coefficient": {
            "type": "number",
            "minimum": -1000000,
            "maximum": 1000000
          },
          "variance": {
            "type": "number",
            "minimum": 0,
            "maximum": 1000000
          }
        },
        "required": [
          "id",
          "coefficient",
          "variance"
        ],
        "additionalProperties": false
      },
      "maxItems": 100,
      "minItems": 1
    }
  },
  "required": [
    "shots",
    "terms"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "shots": 30,
  "terms": [
    {
      "id": "a",
      "coefficient": 1,
      "variance": 1
    },
    {
      "id": "b",
      "coefficient": 2,
      "variance": 1
    }
  ]
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’