Cirq icon indicating copy to clipboard operation
Cirq copied to clipboard

Integrate Quirk Editor Embed in Cirq

Open freyam opened this issue 3 years ago • 3 comments

This PR aims to solve Issue #4489 by integrating Quirk editor in Cirq.

Proposed Changes

  • [x] [CORE] Users should be able to pull up the Quirk editor in IPython notebooks from within Cirq.
    • Added pyQuirk widget (from pyQuirk import Quirk).
    • Users can launch the editor within a notebook by Quirk().
  • [ ] [CORE] Convert a cirq.Circuit to a Quirk circuit from within the notebook.
  • [ ] [FEATURE] Allow modifying an existing circuit / build a new circuit using Quirk and export as cirq.Circuit from within the notebook.
  • [ ] [FEATURE] cirq.contrib.circuit_to_quirk_url which can convert a Quirk URL to a cirq.Circuit.
  • [ ] ... (to be discussed)

This PR is part of the Cirq Visualizations Roadmap.

freyam avatar Sep 09 '21 20:09 freyam

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

google-cla[bot] avatar Sep 09 '21 20:09 google-cla[bot]

@googlebot I signed it!

freyam avatar Sep 09 '21 20:09 freyam