Skip to content

Loading VQE should be singled out as a separate script #85

Description

@marekgluza

The task of evaluating GCI on shots exemplifies a likely use case of our repo

  • we have old vqe training
  • we take some vqe unitary, we have some vqe circuit
  • we want to boost it

Proposed workflow:

  • add gci+warmstart.py
  • the user loads a qibo.Circuit (or provides it somehow)
    • additionally the hamiltonian is provided
    • cost function is same game like loading vqe
  • the script initializes
    def initialize_gci_from_vqe(
    nqubits=10,
    nlayers=7,
    seed=42,
    target_epoch=2000,
    mode_dbr=DoubleBracketRotationType.group_commutator_third_order_reduced,
    ):
  • It outputs GCI training results

This is proposing to have 2 scripts

  • main.py trains vqe and boost with gci
  • gci+warmstart.py implements Fig 1 from Arxiv and boosts with gci after some qibo.Circuit wamstart

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions