def METHOD_NAME():
    x = cirq.NamedQubit('x')
    y = cirq.NamedQubit('y')
    z = cirq.NamedQubit('z')
    c = cirq.Circuit(
        cirq.CZ(x, y),
        cirq.Y(x),
        cirq.Z(x),
        cirq.X(y),
        cirq.CNOT(y, z),
        cirq.Z(y),
        cirq.Z(x),
        cirq.CNOT(y, z),
        cirq.CNOT(z, y),
    )
    def clean_up(operations):
        for op in operations:
            yield op**0.5
    ReplaceWithXGates(post_clean_up=clean_up)(c)
    actual_text_diagram = c.to_text_diagram().strip()
    expected_text_diagram = """