ZXKind#

class tqec.computation.ZXKind(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: Enum

The kind of the node in the ZX graph.

Methods

with_zx_flipped()

Return a X/Z kind from a Z/X kind.

Attributes

X

X spider.

Y

Y basis initialization/measurement.

Z

Z spider.

P

Open port representing the input/output of the graph.

Detailed methods

with_zx_flipped()[source]#

Return a X/Z kind from a Z/X kind.

Otherwise, return itself.

Return type:

ZXKind