Korean
언어
English
Japanese
German
Korean
Portuguese, Brazilian
French
Shortcuts

qiskit.aqua.operators.converters.DictToCircuitSum

class DictToCircuitSum(traverse=True, convert_dicts=True, convert_vectors=True)[소스]

Converts DictStateFns or VectorStateFns to equivalent CircuitStateFns or sums thereof. The behavior of this class can be mostly replicated by calling to_circuit_op on an Operator, but with the added control of choosing whether to convert only DictStateFns or VectorStateFns, rather than both.

매개변수
  • traverse (bool) – Whether to recurse down into Operators with internal sub-operators for conversion.

  • convert_dicts (bool) – Whether to convert VectorStateFn.

  • convert_vectors (bool) – Whether to convert DictStateFns.

__init__(traverse=True, convert_dicts=True, convert_vectors=True)[소스]
매개변수
  • traverse (bool) – Whether to recurse down into Operators with internal sub-operators for conversion.

  • convert_dicts (bool) – Whether to convert VectorStateFn.

  • convert_vectors (bool) – Whether to convert DictStateFns.

Methods

__init__([traverse, convert_dicts, …])

type traverse

bool

convert(operator)

Convert the Operator to CircuitStateFns, recursively if traverse is True.

convert(operator)[소스]

Convert the Operator to CircuitStateFns, recursively if traverse is True.

매개변수

operator (OperatorBase) – The Operator to convert

반환 형식

OperatorBase

반환값

The converted Operator.