MatrixEvolution.convert¶
- MatrixEvolution.convert(operator)[source]¶
Traverse the operator, replacing
EvolvedOps
withCircuitOps
containingUnitaryGates
orHamiltonianGates
(if self.coeff is aParameterExpression
) equalling the exponentiation of -i * operator. This is done by converting theEvolvedOp.primitive
to aMatrixOp
and simply calling.exp_i()
on that.- Parameters
operator (
OperatorBase
) – The Operator to convert.- Return type
- Returns
The converted operator.