Port#

class tqec.computation.Port[source]#

Bases: CubeKind

Cube kind representing the open ports in the block graph.

The open ports correspond to the input/output of the computation represented by the block graph. They will have no effect on the functionality of the logical computation itself and should be invisible when visualizing the computation model.

Methods

__init__()

to_zx_kind()

Return the corresponding ZXKind of the cube kind.

Detailed methods

__init__()#
to_zx_kind()[source]#

Return the corresponding ZXKind of the cube kind.

Returns:

The corresponding ZX kind of the cube kind.

Return type:

ZXKind