test_reflection_using_prepare broken with cirq 1.5

Open
#1,737 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Read qualtran.bloqs.reflections.reflection_using_prepare_test.test_reflection_using_prepare and compare its behavior across Cirq 1.5 and the pinned dev.env.txt requirements. The issue reports excessive allocation and CI timeouts, and asks for a non-slow unit test; done means fixing the failure and adding that test so normal CI can catch it.

Written by the indexing model from the issue text.

Description

area/cirq

Following #1723 in advancing #1708 -- there is a failure in qualtran.bloqs.reflections.reflection_using_prepare_test.test_reflection_using_prepare

on my mac, it complains about trying to allocate more than 32 indices. on a linux box using the pinned dev.env.txt requirements, it fails trying to allocate 1 TB of RAM. On the nighly CI run, it causes the build to time out.

In addition to fixing the actual bug -- we need a unit test that is not marked as "slow" so this can be caught during normal CI runs.

Dominant language
Python
Stars
397
Forks
127
Avg merge
2d 22h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from quantumlib/Qualtran

All issues in quantumlib/Qualtran

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.