{"uid":"cap_NeCZWJ7IDRWi2YG8Z5CHt","slug":"qkd-sifting-and-qber-calculator-f9456812","name":"QKD Sifting and QBER Calculator","description":"Compares caller-supplied Alice and Bob bases, retains matching-basis positions, calculates the quantum bit error rate over caller-selected revealed positions, and returns only a digest and count for remaining demonstration bits. It neither exchanges quantum states nor creates a secret key: all submitted bits are disclosed to this service and must never be used as production key material.","url":"https://quantum.halowerk.com/v1/qkd-key-request","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"bob_bits":{"type":"string","pattern":"^[01]+$","maxLength":4096,"minLength":8,"description":"Bob measurement bits aligned with alice_bits."},"bob_bases":{"type":"string","pattern":"^[XZ]+$","maxLength":4096,"minLength":8,"description":"Bob bases, X or Z, aligned with bob_bits."},"alice_bits":{"type":"string","pattern":"^[01]+$","maxLength":4096,"minLength":8,"description":"Alice measurement bits for a simulation or already completed experiment."},"alice_bases":{"type":"string","pattern":"^[XZ]+$","maxLength":4096,"minLength":8,"description":"Alice bases, X or Z, aligned with alice_bits."},"reveal_indices":{"type":"array","items":{"type":"integer","maximum":4095,"minimum":0,"description":"Zero-based raw observation index to reveal for QBER estimation."},"maxItems":2048,"uniqueItems":true}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NsQBZTXys5sgpOTJk0Aeh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs quantum key distribution (QKD) sifting by comparing Alice and Bob bases, retains matching-basis positions, computes the quantum bit error rate (QBER) over revealed positions, and returns a digest and count of remaining sifted bits for educational/demonstration purposes.","exampleAgentPrompt":"Run a QKD sifting simulation with Alice's bits '01101010' and bases 'XZXZXZXZ', Bob's bits '01100110' and bases 'XZXZZZXZ', and reveal positions [0, 2, 4] to estimate the quantum bit error rate.","exampleUseCases":[{"title":"BB84 classroom sifting demo","prompt":"I have a BB84 simulation where Alice measured bits '0110101011001101' with bases 'XZXZXZXZXZXZXZXZ' and Bob measured bits '0110001011101101' with bases 'XZXZZZXZXZXZXZXZ' — can you sift the bases and check the QBER using positions [1, 3, 5, 7] as the revealed set?"},{"title":"QKD eavesdropping detection test","prompt":"Simulate an intercept-resend attack scenario: Alice used bits '10110010' with bases 'ZXZZXZXZ', and after a suspected eavesdropper, Bob got bits '10010110' with bases 'ZXZZXZZX'. Reveal positions [0, 2, 6] to estimate how high the error rate is and see how many sifted bits remain."},{"title":"QKD protocol research QBER benchmark","prompt":"I'm benchmarking a noisy quantum channel — Alice sent bits '0011101001011010' with bases 'XZXZZXZXXZXZZXZX' and Bob received bits '0001101001010010' with bases 'XZXZZXZXXZXZZXZX'. Please sift the bases and compute QBER over indices [2, 4, 6, 8, 10] so I can compare against theoretical noise thresholds."}],"resultDescription":"Returns a digest of the remaining sifted (non-revealed, matching-basis) bits along with a count of those bits, plus the computed QBER over the caller-specified revealed positions. No actual secret key material is produced; all submitted bits are disclosed to the service and the output is for demonstration/educational purposes only.","failureModes":["Mismatched string lengths between alice_bits, alice_bases, bob_bits, bob_bases cause a validation error","reveal_indices containing out-of-range indices (beyond string length) cause rejection","Input strings shorter than 8 characters or longer than 4096 characters are rejected by the schema","Non-binary characters in bit strings or characters other than X/Z in base strings cause pattern validation failure","Duplicate values in reveal_indices are rejected (uniqueItems constraint)"],"whenToPreferThis":"Choose this endpoint when you need to simulate or analyze the classical post-processing steps of a QKD protocol — specifically basis sifting and QBER estimation — given pre-collected or simulated Alice/Bob measurement data. It is ideal for educational demonstrations, research benchmarking of noisy channels, or teaching BB84 protocol steps without requiring actual quantum hardware. Do not use it if you need to generate true cryptographic key material, as all bits are disclosed to the service.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:48:01.258Z","isFirstParty":false}