French
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.opflow.primitive_ops.MatrixOp.tensor

MatrixOp.tensor(other)[source]

Return tensor product between self and other, overloaded by ^. Note: You must be conscious of Qiskit’s big-endian bit printing convention. Meaning, X.tensor(Y) produces an X on qubit 0 and an Y on qubit 1, or X⨂Y, but would produce a QuantumCircuit which looks like

-[Y]- -[X]-

Because Terra prints circuits and results with qubit 0 at the end of the string or circuit.

Paramètres

other (OperatorBase) – The OperatorBase to tensor product with self.

Renvoie

An OperatorBase equivalent to the tensor product of self and other.

Type renvoyé

Union[MatrixOp, TensoredOp]