qiskit.quantum_info.ScalarOp.tensor¶
- ScalarOp.tensor(other)[fuente]¶
Return the tensor product with another ScalarOp.
- Parámetros
other (ScalarOp) – a ScalarOp object.
- Devuelve
- the tensor product \(a \otimes b\), where \(a\)
is the current ScalarOp, and \(b\) is the other ScalarOp.
- Tipo del valor devuelto
Nota
The tensor product can be obtained using the
^
binary operator. Hencea.tensor(b)
is equivalent toa ^ b
.