Cirq simulation regressions

オープン
#1,763 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Python
スター
397
フォーク
127
平均マージ
2日 19時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

quantumlib/Qualtran のほかの issue

quantumlib/Qualtran の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。