Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cirq requirement from <1.3.0,>=1.0.0 to >=1.0.0,<1.4.0 #2107

Merged
merged 6 commits into from
Dec 12, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 4, 2023

Updates the requirements on cirq to permit the latest version.

Release notes

Sourced from cirq's releases.

v1.3.0

Cirq v1.3.0 release

Summary

Deprecation of cirq-ft

The newly created cirq-ft package (from 1.2.0) will be moving to its new home in the qualtran repository. Please pull from that repository to get all your fault-tolerant resource estimation goodness.

Qubit management

Two new qubit managers (GreedyQubitManager and SimpleQubitManager) can help manage creation and allocation of temporarily or borrowed ancilla qubits.

Performance improvements

Many minor performance improvements have been made over the past 6 months to help speed up troublesome corner cases, such as json serialization, transformers, circuit creation, and symbol resolution.

A classical simulator for simulating circuits without superposition (such as Toffoli, CNOT, X, SWAP, etc) has been added.

A Huge Thank You

Thank you to all our contributors for this release:

Andreas Bengtsson, Bram Evert, Cheng Xing, Doug Strain, Dripto Debroy, eliottrosenberg, Emilio Peláez, Fionn Malone, Jon Donovan, Jose Urruticoechea, Matthew Neeley, Nishna Aerabati, Nafay Najam, Noureldin, Ogah Jackreece Ejini, Pavol Juhas, richrines1, Ryan Hill, Sam Burdick, Sanuj Sharma, Seneca Meeks, Shef, Spencer Churchill, Suyash Damle, Tanuj Khattar, yinghui-hu, Yisu Peng

What's Changed

9b65f686 Remote problematic terminology from test (#6368) dbbca739 Change master to main in documentation (#6365) ced13835 Restore code coverage (#6364) 3ac43f64 Switch master to main in CI tools and dev tools (#6363) 3c6a305b Deprecate Cirq-FT module in favour of Qualtran (#6362) cf973a53 Remove leftover dummy terms from the Cirq sources (#6358) 9142f6a8 Fix MacOS installation instructions for mactex with brew (#6361) 6aa9d0de Cleanup classical simulator code and fix a couple of bugs (#6344) a55f9626 Fix typos in the documentation. (#6359) a4ba95b6 Break intermediate measurements on 3+ qubits into single qubit measurements in RouteCQC#6293 (#6349) 7f47e133 Created using Colaboratory (#6360) b5b3b748 ProcessorSampler: route run_batch to run_sweep (#6357) 2fdb447d Remove dummy from cirq-core (#6356) 3a64ef15 StreamManager: make function params explicit (#6355) 26dbabc6 Speed up hashing for GridQubit, LineQubit, and NamedQubit (#6350) 3c819619 Update docs/tutorials/google/start.pynb (#6346) 9a8298da Update start.ipynb (#6342) 8d07cabc Optimize ParamResolver.value_of (#6341) 392083b9 StreamManager: retry with get result request on already exist errors (#6345) 0e288a75 Bump @​babel/traverse from 7.14.5 to 7.23.2 in /cirq-web/cirq_ts (#6318) 2f702c88 Add classical simulator (#6124) 39bd9269 Change default for streaming feature flag to false (#6310) 0b90ed6f Increase coverage of clifford protocols to parity_gates (#6338)

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the infrastructure For issues related to building, packaging, and continuous integration. label Dec 4, 2023
Copy link

codecov bot commented Dec 4, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d468dd2) 98.21% compared to head (17048d5) 98.24%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2107      +/-   ##
==========================================
+ Coverage   98.21%   98.24%   +0.02%     
==========================================
  Files          87       87              
  Lines        4156     4157       +1     
==========================================
+ Hits         4082     4084       +2     
+ Misses         74       73       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Updates the requirements on [cirq](https://github.com/quantumlib/cirq) to permit the latest version.
- [Release notes](https://github.com/quantumlib/cirq/releases)
- [Changelog](https://github.com/quantumlib/Cirq/blob/main/release.md)
- [Commits](quantumlib/Cirq@v1.0.0...v1.3.0)

---
updated-dependencies:
- dependency-name: cirq
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/cirq-gte-1.0.0-and-lt-1.4.0 branch from 1b6805a to 5a199b3 Compare December 5, 2023 05:19
since the method `_all_qubits` was added to cirq.Circuit objects in the
1.3.0 release, and the circuit objects that are read in from a file are
older, they do not have the `_all_qubits` property which cirq code now
expects.

IMO this is good reason not to use pickling for class specific objects.
Cirq docs recommend JSON for serializing circuits.
minor formatting changes + code formatting
Comment on lines -245 to -247
<!--
![png](../img/rshadows_compare_channels.png)
-->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the diff it seems that some images have been removed. Is this necessary?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah so this is actually a markdown image that was commented out (surrounding by <!-- and -->). I checked that img/rshadows_compare_channels.png does not exist, and the code above this part (and another) does generate the image. So just removing dead lines.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I missed they were just comments. Thanks for removing them.

Copy link
Member

@andreamari andreamari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice workaround for recovering compatibility with old circuits!

@natestemen natestemen merged commit 21abcd0 into master Dec 12, 2023
15 of 16 checks passed
@dependabot dependabot bot deleted the dependabot/pip/cirq-gte-1.0.0-and-lt-1.4.0 branch December 12, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure For issues related to building, packaging, and continuous integration.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants