microsoft / quantum-viz.js

quantum-viz.js is a configurable tool for rendering quantum circuits using pure HTML.
Other
44 stars 13 forks source link

Post-selected measurement gates and state preparation gates #71

Open vadym-kl opened 2 years ago

vadym-kl commented 2 years ago

Is your feature request related to a problem? Please describe. In some areas of quantum computing it is common to use post-selected measurement gates to explain why a circuit works when all measurement outcomes are zero and then proceed to explaining a circuit for a general case. I would like to be able to visualize such circuits with quantum-viz.js.

Describe the solution you'd like I would like post-selected Pauli measurement gates to be available as basic gates.

Describe alternatives you've considered Ability for a user to add custom one, two and multiple-qubit gates with custom drawing of the gates.

Additional context Below are examples of the gates that would be nice to have image