- PVQD.step(hamiltonian, ansatz, theta, dt, initial_guess)¶
Perform a single time step.
hamiltonian (BaseOperator | PauliSumOp) – The Hamiltonian under which to evolve.
ansatz (QuantumCircuit) – The parameterized quantum circuit which attempts to approximate the time-evolved state.
theta (np.ndarray) – The current parameters.
dt (float) – The time step.
initial_guess (np.ndarray) – The initial guess for the classical optimization of the fidelity between the next variational state and the Trotter-evolved last state. If None, this is set to a random vector with elements in the interval \([-0.01, 0.01]\).
A tuple consisting of the next parameters and the fidelity of the optimization.
- Type renvoyé