Closed ptwnimbe1 closed 1 year ago
Related to #1391
Hi thanks for your interest and apologies for the slow response! We are currently in the process of reorganising the Qiskit Tutorials, archiving this repo and moving the existing tutorials to the main qiskit repo or other appropriate projects. During this transition we will be focusing on maintaining/improving our existing content and are not able to take submissions for brand new tutorials at this time
Thanks anyway for your feedback and helping us make Qiskit better! 🚀
Variational Quantum Time Evolution:
1.Variational quantum time evolution leverages variational principles to approximate the time evolution of quantum systems. It aims to find the optimal parameters that minimize the discrepancy between the simulated time evolution and the desired target evolution.
Import Required Libraries
Define the Hamiltonian: Specify the Hamiltonian of the quantum system you want to simulate. You can represent it using the SparsePauliOp from Qiskit's quantum_info module.
Initialize the Ansatz: Create an ansatz, which is a parameterized quantum circuit, using Qiskit's circuit library.
Set Initial Parameter Values: Initialize the parameter values of the ansatz. These values will be iteratively updated during the optimization process.
Define the Variational Principle: Specify the variational principle to be used. For variational quantum time evolution, you can use ImaginaryMcLachlanPrinciple from Qiskit's qiskit.algorithms.time_evolvers.variational module.
Define the Time Evolution Problem: Create a TimeEvolutionProblem object by specifying the Hamiltonian and the desired evolution time.
Run Variational Quantum Time Evolution: Create a VarQITE object with the ansatz, variational principle, and initial parameter values. Then, call the evolve method with the time evolution problem.
By following these steps, you can leverage Qiskit's qiskit.algorithms.time_evolvers.variational package to perform variational quantum imaginary and real-time evolution based on McLachlan's variational principle.