TQECColor#

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

Bases: Enum

Predefined and commonly used colors in TQEC.

Methods

with_zx_flipped()

Returns a X or Z color from a Z or X color and vice versa.

Attributes

rgba

Returns the RGBA representation of the color.

X

Y

Z

H

X_CORRELATION

Z_CORRELATION

Detailed methods

with_zx_flipped()[source]#

Returns a X or Z color from a Z or X color and vice versa.

Return type:

TQECColor