seemps.register.HamiltonianEvolutionLayer#

class seemps.register.HamiltonianEvolutionLayer[source]#

Bases: ParameterizedCircuit

Exponential of a Hamiltonian acting on the quantum register.

This parameterized circuit implements \(\exp(-1j * g * H)\), where g is the circuit’s parameter and H is a Hermitian MPO acting on the qubit register. The exponential is approximated using the Arnoldi expansion of the given order (see arnoldi()).

Parameters:
HMPO

Number of qubits on which to operate.

default_parameterfloat | None

Default rotation angle if none provided.

orderint

Order of exponential approximation (defaults to 4)

strategyStrategy

Truncation and simplification strategy (Defaults to DEFAULT_STRATEGY)

Examples

>>> state = random_uniform_mps(2, 3)
>>> U = LocalRotationsLayer(register_size=state.size, operator="Sz")
>>> Ustate = U @ state