Skip to content

Draft: Qiskit Primitives V2 Migration#298

Merged
David-Kreplin merged 95 commits intosQUlearn:developfrom
David-Kreplin:qiskit_primitives_v2
Oct 27, 2024
Merged

Draft: Qiskit Primitives V2 Migration#298
David-Kreplin merged 95 commits intosQUlearn:developfrom
David-Kreplin:qiskit_primitives_v2

Conversation

@David-Kreplin
Copy link
Collaborator

@David-Kreplin David-Kreplin commented Oct 15, 2024

Migration to Qiskits new Primitives

Todos:

  • Executor.py
    • resolve imports
    • __init__
      • Zusätzliche Abfragen ob execution v2 und entsprechend updaten
      • Flag setzen?
      • Base Klassen in den Abfragen anpassen?
    • backend -> Wie greif ich auf primitive backend zu?
    • Parallelisierung (potenziell nur für V1)
    • estimator und sampler
      • Protected für v1
      • Neue protected für v2
      • Public die unterscheidet
      • Evtl. einfach in existierenden switch case einfügen
      • ParallelEstimatorV2
    • clear_estimator_cache und clear_sampler_cache
      • Braucht man das noch? - Irrelevant für V2
      • Cachen die überhaupt?
    • _primitive_run
      • Wurde an der JobStruktur und den Errors was geändert?
      • Caching Gefixt
    • estimator_run und sampler_run
      • Protected v1 und v2
      • Public die unterscheidet
    • swapp_to_BackendPrimitive
      • In circuit measurements überprüfen und dann entscheiden wie anpassen
    • get_estimator und get_sampler
      • Unterscheiden zwischen v1 und v2
      • ExecutorPrimitives auch für v2
    • set_shots und get_shots
      • Neuer switch case
    • set_options_estimator, set_options_sampler, reset_options_estimator und reset_options_sampler
      • Switch case oder 2 protected Funktionen
    • set_seed_for_primitive
      • Im primitive anpassen
  • optree_evaluate
    • improve imports

Doku:

  • Fix Prerequisites in install tab
  • Update the Executor Class user guide

@MoritzWillmann MoritzWillmann linked an issue Oct 16, 2024 that may be closed by this pull request
@MoritzWillmann MoritzWillmann linked an issue Oct 25, 2024 that may be closed by this pull request
@David-Kreplin David-Kreplin marked this pull request as ready for review October 27, 2024 15:38
@David-Kreplin David-Kreplin merged commit d2ab5bb into sQUlearn:develop Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bayesian-optimization v2.0.0 version problem Upgrade to Qiskit Runtime V2 primitives

2 participants