qiskit-community / prototype-entanglement-forging

A module for simulating chemical and physical systems using a Variational Quantum Eigensolver (VQE) enhanced by Entanglement Forging.
https://journals.aps.org/prxquantum/abstract/10.1103/PRXQuantum.3.010309
Apache License 2.0
30 stars 10 forks source link

Support for complex valued ansatzes and Hamiltonians #39

Open tanvipg opened 2 years ago

tanvipg commented 2 years ago

When looking at systems that break time reversal symmetry, we have Hamiltonians that are complex valued and the resulting wave-functions are complex valued as well. Entanglement forging code can be upgraded to be able to treat these systems.

Potential solution:

  1. Modify modules that generate the Hamiltonian via the Cholesky decomposition to be compatible with imaginary terms in the 2N qubit Hamiltonian.
  2. Test that the ClassicalEnergies class is compatible with these changes.
  3. Add additional linear superposition related to (+/- i) in the make_stateprep_circuits function such that all superposition circuits can be created as needed. A flag can be created to invoke the additional superposition circuits when needed.

Something along these lines maybe:

Screen Shot 2021-09-09 at 4 30 13 PM