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 (PauliTerm) – A pauli term to exponentiate

Return type

Callable[[Union[float, MemoryReference]], Program]

Returns

A function that takes an angle parameter and returns a program.