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
- Return type
- Returns
The
~CircuitOp @ StateFn
composition equivalent to a state function defined by the originalPauliOp
.