Coherent XOR queries as placed circuit gates #
xorQuery H A queries a fixed function H coherently on the wires A: the first a wires
hold its argument, the following b wires hold its XOR accumulator, and all other wires are
untouched. xorQuery_eval_apply describes its action on every amplitude. No measurement or
resampling occurs during a query. Oracle/ValueQuery connects it to the value-query model.
This is an operational building block, not an efficiency certificate or a random-oracle
security theorem. In particular, the implementation cost of H is not charged here: an oracle
circuit must count this gate as an oracle call separately from its elementary gates.
The constructions and elementary identities below are original formalization infrastructure.
The query convention is the one in Boneh et al., §2.1, p. 7; injective wire
placement also permits other register layouts. Their efficiency and random-oracle assumptions
are separate from the gate action formalized here.
Main definitions #
Cslib.Quantum.queryRegisters: split a register into query, response and unused wires.Cslib.Quantum.xorQuery: the placed coherent XOR-query gate.
Main results #
Cslib.Quantum.xorQuery_eval_ket: the action on computational-basis states.Cslib.Quantum.xorQuery_eval_apply: the action on arbitrary amplitudes.Cslib.Quantum.xorQuery_eval_twice: two queries cancel, including on superpositions.
References #
- Boneh et al., Random Oracles in a Quantum World, arXiv:1008.0931v2, §2.1, p. 7.
Reassembling the registers recovers every unused workspace bit.
A query preserves the argument and unused wires, and XORs the answer into the response.
The query acts by permuting amplitudes, without observing or discarding a query register.