Skip to main content
IBM Quantum Platform
Diese Seite stammt aus einer alten Version von Qiskit SDK und ist in der aktuellen Version nicht mehr vorhanden. Wir empfehlen Ihnen, auf die neueste Version umzusteigen. Weitere Informationen finden Sie in den Versionshinweisen.

ConverterBase

class qiskit.opflow.converters.ConverterBase

GitHub

Bases: 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 a SummedOp of PauliOps representing the circuit unitary. Converters may not have polynomial space or time scaling in their operations. On the contrary, many converters, such as a MatrixExpectation or MatrixEvolution, which convert PauliOps to MatrixOps 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).

Deprecated since version 0.24.0

The class qiskit.opflow.converters.converter_base.ConverterBase is deprecated as of qiskit-terra 0.24.0. It will be removed in the Qiskit 1.0 release. For code migration guidelines, visit https://qisk.it/opflow_migration.


Methods

convert

abstract convert(operator)

Accept the Operator and return the converted Operator

Parameters

operator (OperatorBase) – The Operator to convert.

Returns

The converted Operator.

Return type

OperatorBase

War diese Seite hilfreich?
Melden Sie auf GitHub einen Fehler, einen Tippfehler oder fordern Sie Inhalte an.