Function quantum::gates::swap [] [src]

pub fn swap() -> Gate

The two qubit swap gate.

This swaps the value of the first and second qubit.

See Wikipedia for more information.