TimeEvolutionSolver¶
- class TimeEvolutionSolver(backend, map_type=None, trotter_steps=None, shots=1000)[source]¶
Solver class that solves time evolution problem by either analog simulation on fermionic hardware or trotterized time evolution on qubit hardware. The computation that this time evolution solver will do depends on the type of the backend.
Initialize a time evolution solver
- Parameters:
backend – The backend on which to execute the problem, may be qubit or fermionic.
map_type (
Optional
[str
]) – The fermion-to-qubit mapping required if a qubit backend is giventrotter_steps (
Optional
[int
]) – The amount of trotter steps to approximate time evolution on qubit backendsshots (
int
) – number of measurements taken of the constructed circuits
Attributes
Methods
Convert the problem to a trotterized qubit circuit using the specified map_type
TimeEvolutionSolver.solve
(problem)Solve the problem using the provided backend