guppyalgos.primitives.subroutines.swap

SwapUp operations.

Functions

swapup_linear()

Move the index-selected qubit or state register to position zero.

guppyalgos.primitives.subroutines.swap.swapup_linear()

Move the index-selected qubit or state register to position zero.

Either:

swapup_linear(index_qreg, state_qreg)

Or:

swapup_linear(index_qreg, state_qregs)