Cirq simulation regressions

Abierto
#1,763 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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
Lenguaje dominante
Python
Estrellas
397
Forks
127
Merge medio
2 d 19 h
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de quantumlib/Qualtran

Todos los issues de quantumlib/Qualtran

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.