About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
ConverterBase
class ConverterBase
Bases: abc.ABC
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).
Methods Defined Here
convert
abstract ConverterBase.convert(operator)
Accept the Operator and return the converted Operator
Parameters
operator (OperatorBase
) – The Operator to convert.
Return type
Returns
The converted Operator.
Was this page helpful?
Report a bug or request content on GitHub.