Portuguese
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.PauliTable.expand

PauliTable.expand(other)[código fonte]

Return the expand output product of two tables.

This returns the combination of the tensor product of all Paulis in the other table with all Pauli’s in the current table, with the current tables qubits being the least-significant in the returned table. This is the opposite tensor order to tensor().

Example

from qiskit.quantum_info.operators import PauliTable

current = PauliTable.from_labels(['I', 'X'])
other =  PauliTable.from_labels(['Y', 'Z'])
print(current.expand(other))
PauliTable: ['YI', 'YX', 'ZI', 'ZX']
Parâmetros

other (PauliTable) – another PauliTable.

Retorno

the expand outer product table.

Tipo de retorno

PauliTable

Levanta

QiskitError – if other cannot be converted to a PauliTable.