class_docstr: Test converters to_zx and from_zx.
docstr: Cross qubit connections is not diagram-like.
docstr_tok: ["Cross","qubit","connections","is","not","diagram-like","."]
code: def test_no_decomposition(self):
      """Cross qubit connections is not diagram-like."""
      graph = pyzx.Graph(None)
      q_mapper = pyzx.circuit.gates.TargetMapper()
  
      inputs = []
  
      # Create the qubits in the graph and the qubit mapper
      vertex = graph.add_vertex(pyzx.VertexType.BOUNDARY, 0, 0)
      inputs.append(vertex)
      q_mapper.set_prev_vertex(0, vertex)
      q_mapper.set_next_row(0, 1)
      q_mapper.set_qubit(0, 0)
  
      # Cross qubit connection
      r = q_mapper.next_row(0)
  
      v1 = graph.add_vertex(pyzx.VertexType.Z, q_mapper.to_qubit(0), r)
      graph.add_edge(
          graph.edge(q_mapper.prev_vertex(0), v1), pyzx.EdgeType.SIMPLE
      )
      q_mapper.set_prev_vertex(0, v1)
  
      q_mapper.set_qubit(1, 1)
      q_mapper.set_next_row(1, r + 1)
      q_mapper.set_next_row(0, r + 1)
  
      r = max(q_mapper.next_row(1), q_mapper.next_row(0))
  
      v2 = graph.add_vertex(pyzx.VertexType.Z, q_mapper.to_qubit(1), r)
      graph.add_edge(
          graph.edge(q_mapper.prev_vertex(0), v2), pyzx.EdgeType.SIMPLE
      )
      q_mapper.set_prev_vertex(0, v2)
  
      q_mapper.set_next_row(1, r + 1)
      q_mapper.set_next_row(0, r + 1)
      r = max(q_mapper.next_row(1), q_mapper.next_row(0))
  
      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)
  
      outputs = []
  
      graph.set_inputs(tuple(inputs))
      graph.set_outputs(tuple(outputs))
  
      with pytest.raises(
          qml.QuantumFunctionError,
          match="Cross qubit connections, the graph is not circuit-like.",
      ):
          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 10 for calling the TestConvertersZX obj's underlying member method code with example usage: obj.test_no_decomposition() without return types