Function quantum::gates::sqrt_swap [] [src]

pub fn sqrt_swap() -> Gate

The two qubit sqrt(swap) gate.

This performs half-way of a two-qubit swap.

It is universal such that any quantum many qubit gate can be constructed from only sqrt(swap) and single qubit gates.

See Wikipedia for more information.