Skip to content

Support _circuit_diagram_info_protocol_ for customized rendering of tags in circuit diagrams #6560

@pavoljuhas

Description

@pavoljuhas

This is a follow-up to #6411 which introduced str() as a default representation of tags in a text circuit diagrams.
This should be kept as a default method, but we would like to also support the _circuit_diagram_info_protocol_
for tags. _circuit_diagram_info_protocol_ - if defined - would produce a specialized string for rendering the tag object in circuit diagrams.

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/visualizationgood first issueThis issue can be resolved by someone who is not familiar with the codebase. A good starting issue.kind/feature-requestDescribes new functionalityno QC knowledge neededWant to contribute to Cirq, but don't know quantum computing? This issue is for you.triage/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