Qemmet

A shorthand notation for generating a quantum circuit.

A shorthand notation?

Well, I was creating some random circuits in Qiskit and I'm kind of lazy. So I thought, "It would be cool if we had something like Emmet, but in Quantum". So I create a new syntax that can hold enough information about a circuit and, yeah, this is it. Now I can write a simple Bell's state in a syntax of h1cx12 instead of a lengthy qc.h(0) and qc.cx(0,1).

How does this work?

Good question! Since writing all of the rules here are going to be pretty long and boring, I suggest you to look up our wiki to learn more about the syntax and mechanics behind Qemmet.

Example circuits:

Click at the code to see it in action!


Diagram Options
Generated Source Code:
{{transpiled_code}}