CQuIC / qcircuit

A quantum circuit drawing application
GNU General Public License v2.0
164 stars 42 forks source link

added gate with incoming classical wire #42

Closed thomasgwong closed 2 years ago

thomasgwong commented 2 years ago

Added \cgate, which is a gate but with a classical incoming wire instead of a quantum incoming wire. This is useful for creating resets, as shown in the bottom-right corner of the following circuit: Screenshot_2021-11-02_13-31-36

Travis-S commented 2 years ago

@thomasgwong Thanks for the contribution! Could you update the docs to include a snippet highlighting this gate?

thomasgwong commented 2 years ago

Of course! I just added the snippet. Here's a screenshot showing how it compiles: Screenshot_2021-11-04_09-33-52