Skip to content

[Bug]: Handle legend without Pauli measurements #554

Description

@matulni

"Pauli-measured nodes" should not appear in the legend when the open graph does not have any Pauli measurements.

Code to reproduce the issue:

from graphix import Circuit
circuit = Circuit(1)
circuit.h(0)

pattern = circuit.transpile().pattern
pattern.draw()
Image

Metadata

Metadata

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions