Notă
Accesul la această pagină necesită autorizare. Puteți încerca să vă conectați sau să modificați directoarele.
Accesul la această pagină necesită autorizare. Puteți încerca să modificați directoarele.
Fully qualified name: Std.Canon.ApplyXorInPlace
operation ApplyXorInPlace(value : Int, target : Qubit[]) : Unit is Adj + Ctl
Summary
Applies a bitwise-XOR operation between a classical integer and an integer represented by a register of qubits.
Description
Applies X operations to qubits in a little-endian register based on
1 bits in an integer.
Let us denote value by a and let y be an unsigned integer encoded in target,
then ApplyXorInPlace performs an operation given by the following map:
|y⟩ ↦ |y ⊕ a⟩, where ⊕ is the bitwise exclusive OR operator.