Share via


SwapReverseRegister operation

Fully qualified name: Std.Canon.SwapReverseRegister

operation SwapReverseRegister(register : Qubit[]) : Unit is Adj + Ctl

Summary

Uses SWAP gates to reverse the order of the qubits in a register.

Input

register

The qubits order of which should be reversed using SWAP gates