Korean
언어
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.opflow.list_ops.SummedOp.to_circuit

SummedOp.to_circuit()[소스]

Returns the quantum circuit, representing the SummedOp. In the first step, the SummedOp is converted to MatrixOp. This is straightforward for most operators, but it is not supported for operators containing parameterized PrimitiveOps (in that case, OpflowError is raised). In the next step, the MatrixOp representation of SummedOp is converted to circuit. In most cases, if the summands themselves are unitary operators, the SummedOp itself is non-unitary and can not be converted to circuit. In that case, ExtensionError is raised in the underlying modules.

반환

The circuit representation of the summed operator.

예외 발생
  • OpflowError – if SummedOp can not be converted to MatrixOp (e.g. SummedOp is composed of

  • parameterized PrimitiveOps).

반환 형식

QuantumCircuit