classiq-library icon indicating copy to clipboard operation
classiq-library copied to clipboard

Symmetry Enhanced Variational Quantum Spin Eigensolver

Open NadavClassiq opened this issue 1 year ago • 7 comments

Symmetry Enhanced Variational Quantum Spin Eigensolver

Abstract

Variational Quantum Algorithms (VQAs) have emerged as powerful methods for achieving quantum advantage on Noise Intermediate-Scale Quantum (NISQ) devices. Their adaptability to current quantum technology, without the need for error correction, makes them ideal for a range of applications. A key component in building effective VQAs is tailoring the variational ansatz to include symmetries or conserved quantities, which can improve performance and accuracy. This project focuses on implementing the Symmetry Enhanced Variational Quantum Spin Eigensolver by Chufan Lyu et al., specifically designed for spin systems with a conserved total spin number using the Variational Quantum Eigensolver (VQE).

Project Overview

Challenge: Implement the VQE algorithm using a symmetry-enhanced ansatz on the Classiq platform to estimate ground state energies for a spin system. Compare the Sz-conserving ansatz with hardware-efficient ansatzes between 5 and 15 layers. Reference the Glued Trees example structure for notebook organization.

Objective

Estimate the ground state energy for a spin system with $N = 4$ qubits:

  1. Implement and compare:
    • Sz-conserving ansatz
    • Hardware-efficient ansatzes (5 to 15 layers)
  2. Analyze the algorithm’s performance with different initial parameters.

Deliverables

  • Jupyter Notebook containing:
    • Quantum programs implementing the VQE with both ansatz types.
    • Graphical comparison of the ground state energy estimates for each ansatz.
    • Analysis of algorithm behavior with varying initial parameters.

Follow the Contribution Guidelines in CONTRIBUTING.md. Reach out on GitHub or in our Slack Community if you have any questions.

Getting Started

  1. Review Paper: Study the theory and methods from the paper Symmetry Enhanced Variational Quantum Spin Eigensolver by Chufan Lyu et al.
  2. Set Up Environment: Create a new Jupyter Notebook and install the Classiq SDK. Follow the setup guide.
  3. Guiding Materials:

Implementation Steps

  1. Algorithm Coding:

    • Implement the algorithm using the Classiq SDK.
    • Document steps in markdown, following the Glued Trees Example.
    • For assistance, reach out on GitHub or Slack.
  2. Mathematical Explanation:

    • Use markdown and LaTeX for theoretical background, key equations, and algorithm insights.
  3. Generate .qmod File:

    • Use write_qmod(model, "filename.qmod") in your code to save your models.
    • Confirm successful execution and .qmod file generation.
  4. Quality Check:

    • Proofread and ensure code accuracy.
    • Format markdown for clarity and professional presentation.
  5. Submit Contribution:

    • Follow Contribution Guidelines.
    • Open a Pull Request in classiq-library/research/symmetry_enhanced_variational_spin_eigensolver.
    • Include a summary and key insights from your implementation.

Resources


Note: No strict deadline. Confirm with us if you start this task so we can assign it to you.

Good Luck!

NadavClassiq avatar Nov 05 '24 07:11 NadavClassiq

Hi, I'd like to be assigned to this project

KYC2654 avatar Feb 27 '25 01:02 KYC2654

Hi @KYC2654!

Yes, I am assigning you.

Please note that we accept high-quality implementations to our repository and will be glad to accept a contribution that meets our standards.

Good luck!

NadavClassiq avatar Feb 27 '25 12:02 NadavClassiq

Hi @KYC2654, what is the status of this? Are you still working on the implementation?

TaliCohn avatar Apr 01 '25 10:04 TaliCohn

Yes! Deeply apologize for the delay, but I am still working on it. I'm having a tough time trying to implement the ansatzs. I realized the deadline was last week, but I need more time.

KYC2654 avatar Apr 01 '25 19:04 KYC2654

Sure, how much time do you still need? For ant questions, please feel free to post on the Community Slack - out=r team and community can help you out.

TaliCohn avatar Apr 02 '25 07:04 TaliCohn

Perhaps an additional week or two. Sorry for the late reply and delay! Still in school, and it's midterm season. I will and have been using the slack, thanks for the advice!

KYC2654 avatar Apr 07 '25 01:04 KYC2654

Hi @KYC2654, what is the status here? Are you still working on this? If you have opened a PR, please link it to this issue so we can keep track.

TaliCohn avatar Apr 29 '25 08:04 TaliCohn