QuantumBFS / Yao.jl

Extensible, Efficient Quantum Algorithm Design for Humans.
https://yaoquantum.org
Other
918 stars 119 forks source link

Syntax for a negative controlled not #440

Closed BoltzmannEntropy closed 1 year ago

BoltzmannEntropy commented 1 year ago

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,

GiggleLiu commented 1 year ago

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