seemps.register.HamiltonianEvolutionLayer#
- class seemps.register.HamiltonianEvolutionLayer[source]#
Bases:
ParameterizedCircuitExponential 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
MPOacting on the qubit register. The exponential is approximated using the Arnoldi expansion of the given order (seearnoldi()).- Parameters:
Examples
>>> state = random_uniform_mps(2, 3) >>> U = LocalRotationsLayer(register_size=state.size, operator="Sz") >>> Ustate = U @ state