Skip to main content

superdense_decode

Function superdense_decode 

Source
pub fn superdense_decode(b0: bool, b1: bool) -> QuantumResult<SuperdenseResult>
Expand description

Run the full superdense-coding round-trip for the message (b0, b1).

Prepares a Bell pair, applies Alice’s Pauli encoding for the requested bits, then applies Bob’s decoder and reads out both qubits via deterministic argmax. The decoded bits equal the input (b0, b1) exactly.

§Errors

Propagates gate-application errors (none occur for the fixed 2-qubit circuit).