OperatorBase.primitive_strings¶
- abstract OperatorBase.primitive_strings()[source]¶
Return a set of strings describing the primitives contained in the Operator. For example,
{'QuantumCircuit', 'Pauli'}
. For hierarchical Operators, such asListOps
, this can help illuminate the primitives represented in the various recursive levels, and therefore which conversions can be applied.- Return type
Set
[str
]- Returns
A set of strings describing the primitives contained within the Operator.