qiskit.algorithms.PVQD.step¶
- PVQD.step(hamiltonian, ansatz, theta, dt, initial_guess)[source]¶
Perform a single time step.
- Parameters
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]\).
- Returns
A tuple consisting of the next parameters and the fidelity of the optimization.
- Return type
tuple[np.ndarray, float]