exponential_map

pyquil.paulis.exponential_map(term)[source]

Returns a function f(alpha) that constructs the Program corresponding to exp(-1j*alpha*term).

Parameters:term – A pauli term to exponentiate
Returns:A function that takes an angle parameter and returns a program.
Return type:Function