The Trap Code is a non-interactive scheme for quantum authentication. It appends two additional trap registers in a fixed state, on which a Pauli twirl or a permutation is acted on. It furthermore makes use of error correction codes for encoding the quantum message.
The trap code requires a shared pair of secret classical keys. It makes use of an error correction code to encode the quantum message. Consequently, two so-called trap registers in the fixed states and are appended. The total register is then encrypted by applying a permutation and a Pauli twirl, each according to the classical keys. The receiver then applies the inverse Pauli twirl and permutation and consequently measures the two trap registers in the computational or Hadamard basis respectively to decide whether to accept or abort the process.
Output: Quantum state if the protocol accepts; fixed quantum state if the protocol aborts
Encoding:
applies an error correction code
appends an additional trap register of qubits in state
appends a second additional trap register of qubits in state
permutes the total -qubit register by according to the key
applies a Pauli encryption according to key
Mathematical Encoding Description: Mathematically, the encoding process is given by
In the above, denotes the quantum message after applying the error correction code for encoding (see step 1).
Decoding:
applies according to key
applies inverse permutation according to the key
measures the last qubits in the Hadamard basis
measures the second last qubits in the computational basis
a. If the two measurements in step 3 and 4 result in and , an additional flag qubit in state is appended and the quantum message is decoded according to the error correction code b. Otherwise, an additional flag qubit in state is appended and the (disturbed) encoded quantum message is replaced by a fixed state
Mathematical Decoding Description: Mathematically, the decoding process is given by
In the above, refers to decoding of the error correction code (see step 4a) and denotes the trace over the two trap registers. Moreover, and refer to the measurement projectors that determine whether the protocol accepts or aborts the received quantum message. It is