Skip to content
HALOWERK

Quantumwerk

qubit pauli expectation

Return the expectation of a supplied Pauli word on a one- or two-qubit pure state.

POST https://quantum.halowerk.com/v1/qubit-pauli-expectation

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
statearrayYes
paulistringYes
Show full input schema
{
  "type": "object",
  "properties": {
    "state": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "number",
          "minimum": -10,
          "maximum": 10
        },
        "maxItems": 2,
        "minItems": 2
      },
      "maxItems": 4,
      "minItems": 2
    },
    "pauli": {
      "type": "string",
      "pattern": "^[IXYZ]{1,2}$"
    }
  },
  "required": [
    "state",
    "pauli"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "state": [
    [
      0.7071067811865476,
      0
    ],
    [
      0.7071067811865476,
      0
    ]
  ],
  "pauli": "X"
}

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 →