RG#

class tqec.plaquette.RG(r, g)[source]#

Bases: object

Reduced format to represent syndrome qubit operations.

The RG format is simply the RPNG format where P is unconditionally - and N is unset.

Parameters:
  • r (PauliBasis | None)

  • g (PauliBasis | None)

r#

reset basis (x, y or z), h or -.

Type:

tqec.plaquette.rpng.rpng.PauliBasis | None

g#

measure basis (x, y or z), h or -.

Type:

tqec.plaquette.rpng.rpng.PauliBasis | None

Methods

__init__(r, g)

from_string(rg_string)

Initialize the RG object from a 2-character string

Attributes

r

g

Detailed methods

__init__(r, g)#
Parameters:
  • r (PauliBasis | None)

  • g (PauliBasis | None)

Return type:

None

classmethod from_string(rg_string)[source]#

Initialize the RG object from a 2-character string

Parameters:

rg_string (str)

Return type:

RG