Developers · Available

Run, call and verify Segura Compute.

Everything you need to run the local studio, call the API and reproduce the verification evidence.

Available

Run the studio

# Node.js 24, from apps/Segura Compute
node server.mjs
node --test tests/*.test.mjs
# open http://127.0.0.1:4197

OpenQASM 3 subset

Header
OPENQASM 3.0; include "stdgates.inc"; qubit[n] q;
Single-qubit gates
h, x, y, z, s, t
Two-qubit gates
cx, cz (control, then target)
Rotation
rz(θ) with θ in radians
Not supported
Mid-circuit measurement, reset, custom gates, control flow. These are rejected with an error.

API reference

  • GET/api/v1/backendsAvailable

    Returns [{ id, physicalHardware, maxQubits, maxShots }].

  • POST/api/v1/simulationsAvailable

    Returns probabilities, counts, real and imag amplitudes, bloch vectors per qubit, and an analytic reference when the circuit is a named example.

  • POST/api/v1/experimentsExperimental

    Returns a schema-versioned comparison report with versions, sampling methods and per-basis outcomes. Requests are limited to 32 KiB.

Conventions

Basis order

Basis labels place qubit 0 on the right: |q₁q₀⟩.

Bloch vectors

+z is |0⟩, +x is |+⟩, +y is |+i⟩. A vector shorter than 1 is a mixed reduced state.

Reproducibility

Same source, shots and seed produce the same counts with the same engine version.

Try it in the browser.