quantum2::gates
pub fn swap() -> Gate
The two qubit swap gate.
This swaps the value of the first and second qubit.
See Wikipedia for more information.