Quantum states embedded in larger input registers #
Cslib.Quantum.embedState places a state on selected qubits of a larger register and fixes the
remaining qubits to a basis string. It is a linear isometry: superpositions and norms are preserved.
On a basis state it writes the basis string on the selected qubits. Any state is the corresponding
linear combination of those embedded basis states.
Running a circuit on the selected qubits commutes with this embedding
(Cslib.Quantum.Circuit.eval_mapWires_embedState), leaving the other qubits fixed.
Classical reversible circuits can move the embedded state by acting on each basis string
(Cslib.Quantum.Circuit.eval_ofCodes_embedState). Codes that avoid its qubits commute with writing
bits there (Cslib.Quantum.GateCode.classicalRun_glue). For a contiguous block following a
classical input, writing a basis string agrees with initializing the concatenated input word
(Cslib.Quantum.glue_blockEmb_inputState).
Main definitions #
Cslib.Quantum.embedState: a state on selected qubits with a fixed basis string elsewhere.
Main results #
Cslib.Quantum.ofFn_inputState: the input basis state is the input word padded with zeros.Cslib.Quantum.embedState_ket: embedding a basis state writes its bits on the selected qubits.Cslib.Quantum.embedState_eq_sum: the expansion in embedded basis states.Cslib.Quantum.Circuit.eval_mapWires_embedState: running a circuit on the selected qubits commutes with embedding its input state.Cslib.Quantum.Circuit.eval_ofCodes_embedState: a classical circuit transports an embedded state according to its action on basis states.Cslib.Quantum.GateCode.classicalRun_glue: classical codes away from selected qubits commute with writing bits on them.Cslib.Quantum.glue_blockEmb_inputState: initializing a block after the input concatenates words.
Classical codes and glued bits #
Classical codes that neither write nor read the qubits e commute with writing bits on
them.
States on part of a register #
A classical circuit mapping |glue e z x⟩ to |glue e' z x'⟩ for every z maps the state
ψ on the qubits e to ψ on the qubits e'.