English
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.quantum_info.DensityMatrix.expand

DensityMatrix.expand(other)[source]

Return the tensor product state other ⊗ self.

Parameters

other (DensityMatrix) – a quantum state object.

Returns

the tensor product state other ⊗ self.

Return type

DensityMatrix

Raises

QiskitError – if other is not a quantum state.