{"service":"HALOWERK quantumwerk","endpoint":"/v1/qkd-key-request","method":"POST","content_type":"application/json","inputSchema":{"type":"object","required":["alice_bits","alice_bases","bob_bits","bob_bases","reveal_indices"],"additionalProperties":false,"properties":{"alice_bits":{"type":"string","minLength":8,"maxLength":4096,"pattern":"^[01]+$","description":"Alice measurement bits for a simulation or already completed experiment."},"alice_bases":{"type":"string","minLength":8,"maxLength":4096,"pattern":"^[XZ]+$","description":"Alice bases, X or Z, aligned with alice_bits."},"bob_bits":{"type":"string","minLength":8,"maxLength":4096,"pattern":"^[01]+$","description":"Bob measurement bits aligned with alice_bits."},"bob_bases":{"type":"string","minLength":8,"maxLength":4096,"pattern":"^[XZ]+$","description":"Bob bases, X or Z, aligned with bob_bits."},"reveal_indices":{"type":"array","maxItems":2048,"uniqueItems":true,"items":{"type":"integer","minimum":0,"maximum":4095,"description":"Zero-based raw observation index to reveal for QBER estimation."}}}},"requestExample":{"alice_bits":"011010110101","alice_bases":"ZXZZXXXZXZXZ","bob_bits":"001010110101","bob_bases":"ZZZXZXXZXZZZ","reveal_indices":[0,6,8]},"operations":[{"method":"POST","inputSchema":{"type":"object","required":["alice_bits","alice_bases","bob_bits","bob_bases","reveal_indices"],"additionalProperties":false,"properties":{"alice_bits":{"type":"string","minLength":8,"maxLength":4096,"pattern":"^[01]+$","description":"Alice measurement bits for a simulation or already completed experiment."},"alice_bases":{"type":"string","minLength":8,"maxLength":4096,"pattern":"^[XZ]+$","description":"Alice bases, X or Z, aligned with alice_bits."},"bob_bits":{"type":"string","minLength":8,"maxLength":4096,"pattern":"^[01]+$","description":"Bob measurement bits aligned with alice_bits."},"bob_bases":{"type":"string","minLength":8,"maxLength":4096,"pattern":"^[XZ]+$","description":"Bob bases, X or Z, aligned with bob_bits."},"reveal_indices":{"type":"array","maxItems":2048,"uniqueItems":true,"items":{"type":"integer","minimum":0,"maximum":4095,"description":"Zero-based raw observation index to reveal for QBER estimation."}}}},"requestExample":{"alice_bits":"011010110101","alice_bases":"ZXZZXXXZXZXZ","bob_bits":"001010110101","bob_bases":"ZZZXZXXZXZZZ","reveal_indices":[0,6,8]}}],"example_request":{"alice_bits":"011010110101","alice_bases":"ZXZZXXXZXZXZ","bob_bits":"001010110101","bob_bases":"ZZZXZXXZXZZZ","reveal_indices":[0,6,8]},"serviceName":"HALOWERK quantumwerk","tags":["iot","qkd","bb84"],"outputSchema":{"type":"object","required":["method"],"properties":{"method":{"type":"string"}},"additionalProperties":true},"outputExample":{"input_observations":12,"matching_basis_count":8,"revealed_count":3,"revealed_error_count":0,"qber":0,"remaining_bit_count":5,"remaining_bits_sha256":"90ee7f52a4de94f36a61af8a991b6fd69283c876f4d0aedb6873018c4eec50db","remaining_positions":[2,5,7,9,11],"security_scope":"educational_sifting_only_all_submitted_bits_are_public_to_service","method":"BB84 basis sifting and revealed-sample QBER calculation"}}