Select two or more gates on the circuit, then press the box icon to make your own gate.
Control flow
Circuit
100%
Cursor at q[0], column 0
q0
q1
c/2
q+ Add qubitAdds a new wire q[n] at the bottom.− Remove qubitRemoves the last wire; asks first if gates sit on it.c+ Add classical bitAdds a classical bit for one more measurement result.− Remove classical bitRemoves the last classical bit; asks first if a measurement writes to it.
Drag a gate onto a wire to start.
Results
Press Compile in the bar above the circuit to see the transpiled circuit, the exact statevector and an explanation.