StabilizerTable.dot¶
- StabilizerTable.dot(other, qargs=None)[source]¶
Return the dot output product of two tables.
This returns the combination of the compose product of all stabilizers in the current table with all stabilizers in the other table.
The individual stabilizer dot product is given by
A.dot(B)
I
X
Y
Z
I
I
X
Y
Z
X
X
I
-Z
Y
Y
Y
Z
-I
-X
Z
Z
-Y
X
I
Example
from qiskit.quantum_info.operators import StabilizerTable current = StabilizerTable.from_labels(['+I', '-X']) other = StabilizerTable.from_labels(['+X', '-Z']) print(current.dot(other))
StabilizerTable: ['+X', '-Z', '-I', '+Y']
- Parameters
other (StabilizerTable) – another StabilizerTable.
qargs (None or list) – qubits to apply dot product on (Default: None).
- Returns
the dot outer product table.
- Return type
- Raises
QiskitError – if other cannot be converted to a StabilizerTable.