Cirq icon indicating copy to clipboard operation
Cirq copied to clipboard

Tagging qubits and moments

Open balopat opened this issue 4 years ago • 2 comments

Feature: Tagging qubits and moments

Problem: Currently one can tag operations. These can serve as compiler or executor pragmas. They also provide a way to cross an api boundary with more generic data appropriately serialized. In actual hardware, it is useful to also provide other metadata to the hardware. For example qubit can be tagged with properties of the qubit necessary for executing gates. Similarly tagging moments can be useful to propagate information about the duration of the moment upwards and downwards through the api surface.

Rough requirements:

  • Decide whether tagging pattern for operations is the correct one to follow
  • Identify use cases to ensure it will be a used feature
  • Implement tagging in qubit and moments, and potentially on new subcircuit constructions (https://github.com/quantumlib/Cirq/issues/3614)

balopat avatar Jan 06 '21 01:01 balopat

This issue has been automatically labeled as stale because 90 days have passed without comments or other activity. If no further activity occurs on this issue and the status/stale label is not removed by a maintainer within 60 days, this issue will be closed. If you would like to restore its status, please leave a comment here; doing so will cause the staleness handler to remove the label. If you have questions or feedback about this process, we welcome your input. You can open a new issue to let us know (please also reference this issue there, for continuity), or reach out to the project maintainers at [email protected].

github-actions[bot] avatar Mar 20 '25 00:03 github-actions[bot]

This issue came up recently. People feel there is a need for this, and in fact they want it rather soon. Putting it on the 2025 roadmap too.

mhucka avatar Jun 25 '25 23:06 mhucka

This has been done.

mhucka avatar Jul 17 '25 22:07 mhucka