Portuguese
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.PauliTable.dot

PauliTable.dot(other, qargs=None)[código fonte]

Return the dot 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 compose().

Example

from qiskit.quantum_info.operators import PauliTable

current = PauliTable.from_labels(['I', 'X'])
other =  PauliTable.from_labels(['Y', 'Z'])
print(current.dot(other))
PauliTable: ['Y', 'Z', 'Z', 'Y']
Parâmetros
  • other (PauliTable) – another PauliTable.

  • qargs (None or list) – qubits to apply dot product on (Default: None).

Retorno

the dot outer product table.

Tipo de retorno

PauliTable

Levanta

QiskitError – if other cannot be converted to a PauliTable.