QuantumBFS/Yao.jl

Syntax for a negative controlled not

BoltzmannEntropy opened this issue · 1 comments

Hello,
What is the correct syntax in Yao for an empty circle?
image

I of course know I can implement it with two X gates.
Thanks,

You can use negative addresses to denote the inverse control qubits. In your plot, it is control(6, (-1, 2), 6=>X).