Skip to content

Adding tags to Circuit objects #6265

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

Closed
kjsatz opened this issue Aug 28, 2023 · 0 comments · Fixed by #6266
Closed

Adding tags to Circuit objects #6265

kjsatz opened this issue Aug 28, 2023 · 0 comments · Fixed by #6266
Assignees
Labels
kind/feature-request Describes new functionality

Comments

@kjsatz
Copy link
Collaborator

kjsatz commented Aug 28, 2023

Is your feature request related to a use case or problem? Please describe.
I'm passing around a cirq.FrozenCircuit to take data and would like to have some descriptive information about the circuit attached to it, which other entities can access to help them understand key information about the circuits they ran.

Describe the solution you'd like
Attach metadata "tags" to Circuit objects, similar to Operation.with_tags.

[optional] Describe alternatives/workarounds you've considered
It descends into hacks, like wrapping the circuit in a CircuitOperation and tagging that, or subclassing cirq.FrozenCircuit.

[optional] Additional context (e.g. screenshots)

What is the urgency from your perspective for this issue? Is it blocking important work?
I hesitate to actually call this "P0" although I would use it immediately for something fairly important and useful.

P0 - this should land no later than a week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature-request Describes new functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants