[][src]Function quantum2::gates::swap

pub fn swap() -> Gate

The two qubit swap gate.

This swaps the value of the first and second qubit.

See Wikipedia for more information.