mentpy.mbqc.templates.many_wires(n_wires: List, **kwargs) MBQCircuit

Returns a graph state with many wires.

n_wires : List

A list of the number of qubits in each wire.

Return type:

The graph state with many wires.


Create a graph state with three wires of 2, 3, and 4 qubits respectively

In [1]: g = mp.templates.many_wires([2, 3, 4])

In [2]: mp.draw(g)
Out[2]: (<Figure size 800x300 with 1 Axes>, <Axes: >)