TaperedPauliSumOp¶
- class qiskit.opflow.primitive_ops.TaperedPauliSumOp(*args, **kwargs)[source]¶
Bases:
PauliSumOp
Deprecated: Class for PauliSumOp after tapering
Deprecated since version 0.24.0: The class
qiskit.opflow.primitive_ops.tapered_pauli_sum_op.TaperedPauliSumOp
is deprecated as of qiskit-terra 0.24.0. It will be removed no earlier than 3 months after the release date. For code migration guidelines, visit https://qisk.it/opflow_migration.- Parameters:
primitive – The SparsePauliOp which defines the behavior of the underlying function.
z2_symmetries – Z2 symmetries which the Operator has.
coeff – A coefficient multiplying the primitive.
- Raises:
TypeError – invalid parameters.
Attributes
- INDENTATION = ' '¶
- coeff¶
The scalar coefficient multiplying the Operator.
- Returns:
The coefficient.
- coeffs¶
Return the Pauli coefficients.
- grouping_type¶
Type of Grouping
- Type:
Returns
- instance_id¶
Return the unique instance id.
- num_qubits¶
- parameters¶
- primitive: SparsePauliOp¶
The primitive defining the underlying function of the Operator.
- Returns:
The primitive object.
- settings¶
Return operator settings.
- z2_symmetries¶
Z2 symmetries which the Operator has.
- Returns:
The Z2 Symmetries.
Methods
- assign_parameters(param_dict)[source]¶
Binds scalar values to any Terra
Parameters
in the coefficients or primitives of the Operator, or substitutes oneParameter
for another. This method differs from Terra’sassign_parameters
in that it also supports lists of values to assign for a giveParameter
, in which case self will be copied for each parameterization in the binding list(s), and all the copies will be returned in anOpList
. If lists of parameterizations are used, everyParameter
in the param_dict must have the same length list of parameterizations.- Parameters:
param_dict (dict) – The dictionary of
Parameters
to replace, and values or lists of values by which to replace them.- Returns:
The
OperatorBase
with theParameters
in self replaced by the values orParameters
in param_dict. If param_dict contains parameterization lists, thisOperatorBase
is anOpList
.- Return type: