Korean
언어
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.Clifford.to_labels

Clifford.to_labels(array=False, mode='B')[소스]

Convert a Clifford to a list Pauli (de)stabilizer string labels.

For large Clifford converting using the array=True kwarg will be more efficient since it allocates memory for the full Numpy array of labels in advance.

Table 2 Stabilizer Representations

Label

Phase

Symplectic

Matrix

Pauli

"+I"

0

\([0, 0]\)

\(\begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}\)

\(I\)

"-I"

1

\([0, 0]\)

\(\begin{bmatrix} -1 & 0 \\ 0 & -1 \end{bmatrix}\)

\(-I\)

"X"

0

\([1, 0]\)

\(\begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}\)

\(X\)

"-X"

1

\([1, 0]\)

\(\begin{bmatrix} 0 & -1 \\ -1 & 0 \end{bmatrix}\)

\(-X\)

"Y"

0

\([1, 1]\)

\(\begin{bmatrix} 0 & 1 \\ -1 & 0 \end{bmatrix}\)

\(iY\)

"-Y"

1

\([1, 1]\)

\(\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}\)

\(-iY\)

"Z"

0

\([0, 1]\)

\(\begin{bmatrix} 1 & 0 \\ 0 & -1 \end{bmatrix}\)

\(Z\)

"-Z"

1

\([0, 1]\)

\(\begin{bmatrix} -1 & 0 \\ 0 & 1 \end{bmatrix}\)

\(-Z\)

매개변수
  • array (bool) – return a Numpy array if True, otherwise return a list (Default: False).

  • mode (Literal["S", "D", "B"]) – return both stabilizer and destablizer if 《B》, return only stabilizer if 《S》 and return only destablizer if 《D》.

반환

The rows of the StabilizerTable in label form.

반환 형식

list or array

예외 발생

QiskitError – if stabilizer and destabilizer are both False.