qiskit.algorithms.PVQD.step¶
- 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.
- 반환 형식
tuple[np.ndarray, float]