Skip to main content

fredkin

Function fredkin 

Source
pub fn fredkin() -> Vec<usize>
Expand description

Fredkin / CSWAP (3-bit): swap b and c when a = 1. Conserves 1-count; self-inverse.