Skip to content

[Bug]: Circuit.transpile doesn't support $\text{RZZ}$ gates while the rest of transpiler.py does. #354

@emlynsg

Description

@emlynsg

Describe the bug
transpiler.py currently supports the common gate operations in Graphix, including the $\text{RZZ}$ gate. However, the method Circuit.transpile does not and raises an error.

To Reproduce
Steps to reproduce the behavior:

import numpy as np
from graphix import Circuit
circuit = Circuit(2, instr=[instruction.RZZ(0, 1, np.pi / 4)])
pattern = circuit.transpile().pattern

Expected behavior
The gate should be managed in the transpiler in an equivalent way to other gates.

Environment (please complete the following information):

  • OS: Ubuntu
  • Python version: 3.13.7

Additional context
Problem to be avoided completely by upcoming transpiler reworking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions