qiskit.opflow.converters.PauliBasisChange.statefn_replacement_fn¶
-
static
PauliBasisChange.
statefn_replacement_fn
(cob_instr_op, dest_pauli_op)[source]¶ A built-in convenience replacement function which produces state functions isomorphic to an
OperatorStateFn
state function holding the originPauliOp
.- Parameters
cob_instr_op (
PrimitiveOp
) – The basis-changeCircuitOp
.dest_pauli_op (
Union
[PauliOp
,PauliSumOp
,ListOp
]) – The destination Pauli type operator.
- Return type
OperatorBase
- Returns
The
~CircuitOp @ StateFn
composition equivalent to a state function defined by the originalPauliOp
.