Skip to content

Embed Quirk Editor in Cirq #4489

Open
Open
@tanujkhattar

Description

@tanujkhattar

Is your feature request related to a use case or problem? Please describe.
Quirk (https://algassert.com/quirk) is an open source quantum circuit editor and simulator. It is a widely used tool for both education and research.
It was proposed in https://tinyurl.com/cirq-visualizations#heading=h.2nfg3hb3jqb to have an integration of the Quirk editor with Cirq. This issue is to discuss the requirements and proposal.

Describe the solution you'd like
Integrate the Quirk editor with Cirq s.t.

  • Users should be able to pull up the Quirk editor in ipython notebooks from within Cirq.
  • Convert a cirq.Circuit to a Quirk circuit from within the notebook.
  • Modify an existing circuit / Build a new circuit using Quirk and export as cirq.Circuit from within the notebook.

[optional] Describe alternatives/workarounds you've considered

  • https://github.com/adgt/pyQuirk already exists which can be used to bring up Quirk editor in jupyter notebooks.
  • cirq.contrib.circuit_to_quirk_url also exists which can convert any cirq.Circuit to a Quirk URL.
  • We can also write another function cirq.contrib.quirk_url_to_circuit which can convert a Quirk URL to a cirq.Circuit to complete the interoperability requirements.

What is the urgency from your perspective for this issue? Is it blocking important work?
P2 - we should do it in the next couple of quarters

Metadata

Metadata

Assignees

Labels

area/interopkind/feature-requestDescribes new functionalitytriage/acceptedA consensus emerged that this bug report, feature request, or other action should be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions