DictToCircuitSum#
- class qiskit.opflow.converters.DictToCircuitSum(traverse=True, convert_dicts=True, convert_vectors=True)[fuente]#
Bases:
ConverterBase
Deprecated: Converts
DictStateFns
orVectorStateFns
to equivalentCircuitStateFns
or sums thereof. The behavior of this class can be mostly replicated by callingto_circuit_op
on an Operator, but with the added control of choosing whether to convert onlyDictStateFns
orVectorStateFns
, rather than both.Obsoleto desde la versión 0.24.0: The class
qiskit.opflow.converters.dict_to_circuit_sum.DictToCircuitSum
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.- Parámetros:
Methods
- convert(operator)[fuente]#
Convert the Operator to
CircuitStateFns
, recursively iftraverse
is True.- Parámetros:
operator (OperatorBase) – The Operator to convert
- Devuelve:
The converted Operator.
- Tipo del valor devuelto: