StabilizerTable.expand

StabilizerTable.expand(other)[source]

Return the expand output product of two tables.

This returns the combination of the tensor product of all stabilizers in the other table with all stabilizers in the current table. The current tables qubits will be the least-significant in the returned table. This is the opposite tensor order to tensor().

Example

from qiskit.quantum_info.operators import StabilizerTable

current = StabilizerTable.from_labels(['+I', '-X'])
other =  StabilizerTable.from_labels(['-Y', '+Z'])
print(current.expand(other))
StabilizerTable: ['-YI', '+ZI', '+YX', '-ZX']
Parameters

other (StabilizerTable) – another StabilizerTable.

Returns

the expand outer product table.

Return type

StabilizerTable

Raises

QiskitError – if other cannot be converted to a StabilizerTable.