qml.ftqc.pauli_tracker.xz_to_pauli

xz_to_pauli(x, z)[source]

Convert x, z to a Pauli operator class.

Parameters:
  • x (int) – Exponent of X in the Pauli record.

  • z (int) – Exponent of Z in the Pauli record.

Returns:

A Pauli operator class.

Example:

The following example shows how the XZ to Pauli works.

from pennylane.ftqc.pauli_tracker import xz_to_pauli
>>> xz_to_pauli(0, 0)(wires=0)
I(0)

A Pauli operator class is returned for a given xz tuple.