qiskit.quantum_info.PauliTable.compose¶
- PauliTable.compose(other, qargs=None, front=True)[ソース]¶
Return the compose output product of two tables.
This returns the combination of the dot product of all Paulis in the current table with all Pauli’s in the other table and discards the complex phase from the product. Note that for PauliTables this method is equivalent to
dot()
and hence thefront
kwarg does not change the output.Example
from qiskit.quantum_info.operators import PauliTable current = PauliTable.from_labels(['I', 'X']) other = PauliTable.from_labels(['Y', 'Z']) print(current.compose(other))
PauliTable: ['Y', 'Z', 'Z', 'Y']
- パラメータ
other (PauliTable) – another PauliTable.
qargs (None or list) – qubits to apply dot product on (Default: None).
front (bool) – If True use dot composition method [default: False].
- 戻り値
the compose outer product table.
- 戻り値の型
- 例外
QiskitError – if other cannot be converted to a PauliTable.