ConverterBase#
- class qiskit.opflow.converters.ConverterBase[ソース]#
ベースクラス:
ABC
Deprecated: Converters take an Operator and return a new Operator, generally isomorphic in some way with the first, but with certain desired properties. For example, a converter may accept
CircuitOp
and return aSummedOp
ofPauliOps
representing the circuit unitary. Converters may not have polynomial space or time scaling in their operations. On the contrary, many converters, such as aMatrixExpectation
orMatrixEvolution
, which convertPauliOps
toMatrixOps
internally, will require time or space exponential in the number of qubits unless a clever trick is known (such as the use of sparse matrices).バージョン 0.24.0 で非推奨: The class
qiskit.opflow.converters.converter_base.ConverterBase
is deprecated as of qiskit-terra 0.24.0. It will be removed no earlier than 3 months after the release date. For code migration guidelines, visit https://qisk.it/opflow_migration.Methods
- abstract convert(operator)[ソース]#
Accept the Operator and return the converted Operator
- パラメータ:
operator (OperatorBase) – The Operator to convert.
- 戻り値:
The converted Operator.
- 戻り値の型: