Skip to content
HALOWERK

Quantumwerk

circuit coupling swap routing

Return a deterministic shortest-path SWAP routing plan for supplied logical two-qubit interactions.

POST https://quantum.halowerk.com/v1/circuit-coupling-swap-routing

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
qubitsintegerYes
couplingarrayYes
interactionsarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "qubits": {
      "type": "integer",
      "minimum": 2,
      "maximum": 32
    },
    "coupling": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "integer",
          "minimum": 0,
          "maximum": 31
        },
        "maxItems": 2,
        "minItems": 2
      },
      "maxItems": 128,
      "minItems": 0
    },
    "interactions": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "integer",
          "minimum": 0,
          "maximum": 31
        },
        "maxItems": 2,
        "minItems": 2
      },
      "maxItems": 128,
      "minItems": 0
    }
  },
  "required": [
    "qubits",
    "coupling",
    "interactions"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "qubits": 3,
  "coupling": [
    [
      0,
      1
    ],
    [
      1,
      2
    ]
  ],
  "interactions": [
    [
      0,
      2
    ]
  ]
}

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 โ†’