TaperedPauliSumOp¶
-
class
TaperedPauliSumOp
(primitive, z2_symmetries, coeff=1.0)[source]¶ Bases:
qiskit.opflow.primitive_ops.pauli_sum_op.PauliSumOp
Class for PauliSumOp after tapering
- Parameters
primitive (
SparsePauliOp
) – The SparsePauliOp which defines the behavior of the underlying function.z2_symmetries (
Z2Symmetries
) – Z2 symmetries which the Operator has.coeff (
Union
[complex
,ParameterExpression
]) – A coefficient multiplying the primitive.
- Raises
TypeError – invalid parameters.
Methods Defined Here
Binds scalar values to any Terra
Parameters
in the coefficients or primitives of the Operator, or substitutes oneParameter
for another.Attributes
-
INDENTATION
= ' '¶
-
coeff
¶ The scalar coefficient multiplying the Operator.
- Return type
Union
[complex
,ParameterExpression
]- Returns
The coefficient.
-
coeffs
¶ Return the Pauli coefficients.
-
grouping_type
¶ Type of Grouping
- Type
Returns
- Return type
str
-
instance_id
¶ Return the unique instance id.
- Return type
int
-
num_qubits
¶ - Return type
int
-
parameters
¶
-
primitive
: qiskit.quantum_info.operators.symplectic.sparse_pauli_op.SparsePauliOp¶ The primitive defining the underlying function of the Operator.
- Return type
Union
[QuantumCircuit
,Operator
,Pauli
,SparsePauliOp
,OperatorBase
]- Returns
The primitive object.
-
settings
¶ Return operator settings.
- Return type
Dict
-
z2_symmetries
¶ Z2 symmetries which the Operator has.
- Return type
Z2Symmetries
- Returns
The Z2 Symmetries.