Skip to main content
Call quantura_quantum_simulate over Quantura MCP, or POST to /api/v1/quantum/simulate using a JSON body. The web lab uses the public /api/quantum/simulate endpoint. Both use Quantura’s MIT-licensed CPU implementation.
Use one quantum register and optionally one classical register. Gates include h, x, y, z, s, sdg, t, tdg, rx, ry, rz, cx, cz, and swap. Rotations accept radians and simple fractions of π such as pi/2. Place measurements after all gates. Without measurements, the simulator reads all qubits in the computational basis. Bit zero appears at the right of the output string. The Bell example returns ideal probabilities of 0.5 for 00 and 11. Sample counts vary from run to run. Inputs beyond the supported syntax or limits receive a clear error.