class_docstr: Test converters to_zx and from_zx.
docstr: Test that a Green-Green nodes with simple edge has no corresponding circuit.
docstr_tok: ["Test","that","a","Green-Green","nodes","with","simple","edge","has","no","corresponding","circuit","."]
code: def test_same_type_nodes_simple_edge(self):
      """Test that a Green-Green nodes with simple edge has no corresponding circuit."""
      graph = pyzx.Graph(None)
      q_mapper = pyzx.circuit.gates.TargetMapper()
      c_mapper = pyzx.circuit.gates.TargetMapper()
  
      inputs = []
  
      # Create the qubits in the graph and the qubit mapper
      for i in range(2):
          vertex = graph.add_vertex(pyzx.VertexType.BOUNDARY, i, 0)
          inputs.append(vertex)
          q_mapper.set_prev_vertex(i, vertex)
          q_mapper.set_next_row(i, 1)
          q_mapper.set_qubit(i, i)
  
      # Create Green Green with simple Edge
      r = max(q_mapper.next_row(1), q_mapper.next_row(0))
  
      v1 = graph.add_vertex(pyzx.VertexType.Z, q_mapper.to_qubit(1), r)
      graph.add_edge(
          graph.edge(q_mapper.prev_vertex(1), v1), pyzx.EdgeType.SIMPLE
      )
      q_mapper.set_prev_vertex(1, v1)
  
      v2 = graph.add_vertex(pyzx.VertexType.Z, q_mapper.to_qubit(0), r)
      graph.add_edge(
          graph.edge(q_mapper.prev_vertex(0), v2), pyzx.EdgeType.SIMPLE
      )
      q_mapper.set_prev_vertex(0, v2)
  
      graph.add_edge((v1, v2), edgetype=pyzx.EdgeType.SIMPLE)
  
      q_mapper.set_next_row(1, r + 1)
      q_mapper.set_next_row(0, r + 1)
      graph.scalar.add_power(1)
  
      row = max(q_mapper.max_row(), c_mapper.max_row())
  
      outputs = []
      for mapper in (q_mapper, c_mapper):
          for label in mapper.labels():
              qubit = mapper.to_qubit(label)
              vertex = graph.add_vertex(
                  pyzx.VertexType.BOUNDARY, qubit, row
              )
              outputs.append(vertex)
              pre_vertex = mapper.prev_vertex(label)
              graph.add_edge(graph.edge(pre_vertex, vertex))
  
      graph.set_inputs(tuple(inputs))
      graph.set_outputs(tuple(outputs))
  
      with pytest.raises(
          qml.QuantumFunctionError,
          match="Two green or respectively two red nodes connected by a ",
      ):
          qml.transforms.from_zx(graph)
  
imports: import sys
  from functools import partial
  import numpy
  import pytest
  import pennylane
  from pennylane.tape import QuantumScript
  from pennylane.transforms.op_transforms import OperationTransformError
label_desc: Use image node_id 12 for calling the TestConvertersZX obj's underlying member method code with example usage: obj.test_same_type_nodes_simple_edge() without return types