{"slug":"quantum-halowerk-com-v1-circuit-optimize-82af02","title":"Cancels adjacent identical self-inverse gates on identical ordered targets and f","host":"quantum.halowerk.com","method":"POST","resource":"https://quantum.halowerk.com/v1/circuit-optimize","category":"other","description":"Cancels adjacent identical self-inverse gates on identical ordered targets and folds adjacent RX, RY or RZ rotations on identical targets. It preserves only these local identities; it does not commute gates, model hardware topology, synthesize arbitrary unitaries or prove global optimality.","price_listed":0.004,"price_asked":0.004,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":891,"reported_calls_30d":2,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"gates":[{"gate":"H","targets":[0]},{"gate":"H","targets":[0]},{"angle_rad":0.4,"gate":"RZ","targets":[1]},{"angle_rad":-0.1,"gate":"RZ","targets":[1]},{"gate":"CNOT","targets":[0,2]}],"qubit_count":3},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"gates":{"items":{"additionalProperties":false,"properties":{"angle_rad":{"maximum":1000000,"minimum":-1000000,"type":"number"},"gate":{"enum":["X","Y","Z","H","CNOT","CZ","SWAP","RX","RY","RZ"],"type":"string"},"targets":{"items":{"maximum":127,"minimum":0,"type":"integer"},"maxItems":2,"minItems":1,"type":"array","uniqueItems":true}},"required":["gate","targets"],"type":"object"},"maxItems":10000,"minItems":1,"type":"array"},"qubit_count":{"maximum":128,"minimum":1,"type":"integer"}},"required":["qubit_count","gates"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.004,"price_match":true,"latency_ms":891,"error":null}],"description_full":"Cancels adjacent identical self-inverse gates on identical ordered targets and folds adjacent RX, RY or RZ rotations on identical targets. It preserves only these local identities; it does not commute gates, model hardware topology, synthesize arbitrary unitaries or prove global optimality.","last_updated":"2026-09-19T06:11:08.259Z","schemes":["exact"]}