hamil_clever_sim.hamil_runner.create_u§
- create_u(op, coef=None)[source]§
Implements operator U=exp(iHt) for a given pauli term, with an optional coefficient.
- Parameters:
op (
str) – A valid pauli string, single term only.coef (
Optional[float]) – A coefficient in the form of a float, that will multiply the time value (from relation \(e^{ic_kP_kt}\))
- Returns:
A closure that of the form U(t), generating a circuit for a given time value.
- Return type:
(time: float, label: Optional[str]) -> QuantumCircuit