Cirq simulation regressions

Aperta
#1,763 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python

Direzione di ricerca

Start with the listed tests in qualtran.bloqs.hamiltonian_simulation, qualtran.bloqs.rotations, qualtran.bloqs.phase_estimation, qualtran.bloqs.qubitization, and qualtran.bloqs.reflections, then read the Cirq upgrade workaround in #1761 and related issues #1488, #1336, #1737, and #1495. Compare the affected simulation performance and failures to the earlier behavior. Done means the listed regressions and SIGKILL failures are addressed, potentially by using native Qualtran tensor contraction in the unit tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area/cirq

This issue tracks problems that had to be worked around to bump our Cirq version from 1.4 onwards in #1761. Note that many unit tests in the qualtran.bloqs quantum standard library use a Cirq simulator for numerical simulation. A way forward might be to re-work these unit tests to use native Qualtran tensor contraction.

Note: the performance regressions are likely a consequence of the kludge needed in #1761.

Performance regressions
  • qualtran.bloqs.hamiltonian_simulation.hamiltonian_simulation_by_gqsp_test.test_hamiltonian_simulation_by_gqsp
  • qualtran.bloqs.rotations.hamming_weight_phasing_test.test_hamming_weight_phasing
    • n=6, 7 now marked as slow
Tests marked slow that likely got slower
  • qualtran.bloqs.phase_estimation.qubitization_qpe_test.test_qubitization_phase_estimation_of_walk (also see #1495)
  • qualtran.bloqs.phase_estimation.text_book_qpe_test.test_textbook_phase_estimation_qubitized_walk (also see #1495)
  • qualtran.bloqs.qubitization.qubitization_walk_operator_test.test_qubitization_walk_operator
Breakages
  • qualtran.bloqs.reflections.reflection_using_prepare_test.test_reflection_using_prepare now gets SIGKILL -ed. See #1737
  • qualtran.bloqs.rotations.hamming_weight_phasing_test.test_hamming_weight_phasing n=8 causes SIGKILL
  • qualtran.bloqs.rotations.phasing_via_cost_function_test.test_hamming_weight_phasing_using_phase_via_cost_function
  • qualtran.bloqs.rotations.quantum_variable_rotation_test.test_qvr_phase_gradient_cost_reg_greater_than_b_grad
Related issues
  • #1488 -- If Cirq is allowed to decompose gates, it often gets down to And(uncompue=True) which says that it's not unitary. #1761 "fixes" this by doing tensor contraction in Qualtran and giving a big tensor to Cirq. This causes performance regression
  • #1336 -- The Cirq simulator is often faster for small-qubit-count circuits since it decomposes and simulates in one fell swoop instead of constructing a tensor network and then having quimb contract it
Lingua principale
Python
Stelle
397
Fork
127
Merge medio
2g 19h
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di quantumlib/Qualtran

Tutte le issue di quantumlib/Qualtran

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.