Placed XOR queries and the quantum value-query model #
A placed coherent XOR query agrees with the existing valueOracle addStep after reindexing its
query, response and unused registers. This bridge includes arbitrary superpositions and workspace
states. The circuit code layer does not depend on the abstract value-query simulation machinery.
Main results #
Cslib.Quantum.xorQuery_eq_valueOracle: agreement of the placed and value-query semantics.Cslib.Quantum.runValue_lookupXorSteps: implement a placed lookup with two calls to a separate XOR oracle, restoring its scratch registers for the next instruction.
Reindexing the placed gate into its three registers gives the existing value oracle. This equality covers arbitrary superpositions and arbitrary states of the unused wires.
The three table-independent operations surrounding a pair of XOR queries: compute the lookup address, apply the placed XOR response, and uncompute the address.
The compiled query implements the native placed XOR gate and restores both scratch registers, with the same encoding for all choices of wires.