Skip to content
HALOWERK

Quantumwerk

qubit pure state fidelity

Return global-phase-invariant fidelity and trace distance between supplied pure states.

POST https://quantum.halowerk.com/v1/qubit-pure-state-fidelity

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
firstReferenceYes
secondReferenceYes
Show full input schema
{
  "type": "object",
  "properties": {
    "first": {
      "$ref": "#/$defs/s0"
    },
    "second": {
      "$ref": "#/$defs/s0"
    }
  },
  "required": [
    "first",
    "second"
  ],
  "additionalProperties": false,
  "$id": "urn:h:w4:G6:input",
  "$defs": {
    "s0": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/s1"
      },
      "maxItems": 4,
      "minItems": 2
    },
    "s1": {
      "type": "array",
      "items": {
        "type": "number",
        "minimum": -10,
        "maximum": 10
      },
      "maxItems": 2,
      "minItems": 2
    }
  }
}

Open original schema

Published input example

{
  "first": [
    [
      1,
      0
    ],
    [
      0,
      0
    ]
  ],
  "second": [
    [
      0.7071067811865476,
      0
    ],
    [
      0.7071067811865476,
      0
    ]
  ]
}

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 →