36 lines
2.6 KiB
Plaintext
36 lines
2.6 KiB
Plaintext
---
|
||
title: primitive_ops (v0.31)
|
||
description: API reference for qiskit.aqua.operators.primitive_ops in qiskit v0.31
|
||
in_page_toc_min_heading_level: 2
|
||
python_api_type: module
|
||
python_api_name: qiskit.aqua.operators.primitive_ops
|
||
---
|
||
|
||
<span id="module-qiskit.aqua.operators.primitive_ops" />
|
||
|
||
<span id="qiskit-aqua-operators-primitive-ops" />
|
||
|
||
<span id="primitive-operators-qiskit-aqua-operators-primitive-ops" />
|
||
|
||
# Primitive Operators
|
||
|
||
`qiskit.aqua.operators.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.
|
||
|
||
<Admonition title="Note" type="note">
|
||
All mathematical methods are not in-place, meaning that they return a new object, but the underlying primitives are not copied.
|
||
</Admonition>
|
||
|
||
# Primitive Operators
|
||
|
||
| | |
|
||
| ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------- |
|
||
| [`PrimitiveOp`](qiskit.aqua.operators.primitive_ops.PrimitiveOp "qiskit.aqua.operators.primitive_ops.PrimitiveOp") | A class for representing basic Operators, backed by Operator primitives from Terra. |
|
||
| [`CircuitOp`](qiskit.aqua.operators.primitive_ops.CircuitOp "qiskit.aqua.operators.primitive_ops.CircuitOp") | Class for Operators backed by Terra’s `QuantumCircuit` module. |
|
||
| [`MatrixOp`](qiskit.aqua.operators.primitive_ops.MatrixOp "qiskit.aqua.operators.primitive_ops.MatrixOp") | Class for Operators represented by matrices, backed by Terra’s `Operator` module. |
|
||
| [`PauliOp`](qiskit.aqua.operators.primitive_ops.PauliOp "qiskit.aqua.operators.primitive_ops.PauliOp") | Class for Operators backed by Terra’s `Pauli` module. |
|
||
|