QuantumBFS / Yao.jl

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

Clarified documentation of @const_gate by adding a description of the nlevel=D option #417

Closed jlbosse closed 2 years ago

jlbosse commented 2 years ago

I had to read the sources to find out how to create a const_gate that acts on qutrits instead of qubits. To make it simpler for the next person I added some details to the docstring of the const_gate macro.