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.
qiskit.opflow.primitive_ops
Primitive Operators
qiskit.opflow.primitive_ops
Operators are defined to be functions which take State functions to State functions.
PrimitiveOps are the classes for representing basic Operators, backed by computational Operator primitives from Terra. These classes (and inheritors) primarily serve to allow the underlying primitives to “flow” - i.e. interoperability and adherence to the Operator formalism - while the core computational logic mostly remains in the underlying primitives. For example, we would not produce an interface in Terra in which QuantumCircuit1 + QuantumCircuit2
equaled the Operator sum of the circuit unitaries, rather than simply appending the circuits. However, within the Operator flow summing the unitaries is the expected behavior.
Note
All mathematical methods are not in-place, meaning that they return a new object, but the underlying primitives are not copied.
Primitive Operators
PrimitiveOp (primitive[, coeff]) | A class for representing basic Operators, backed by Operator primitives from Terra. |
CircuitOp (primitive[, coeff]) | Class for Operators backed by Terra's QuantumCircuit module. |
MatrixOp (primitive[, coeff]) | Class for Operators represented by matrices, backed by Terra's Operator module. |
PauliOp (primitive[, coeff]) | Class for Operators backed by Terra's Pauli module. |
PauliSumOp (primitive[, coeff, grouping_type]) | Class for Operators backed by Terra's SparsePauliOp class. |
TaperedPauliSumOp (primitive, z2_symmetries) | Class for PauliSumOp after tapering |
Symmetries
Z2Symmetries (symmetries, sq_paulis, sq_list) | Z2 Symmetries |
Was this page helpful?
Report a bug or request content on GitHub.