class_docstr: Test that the template is compatible with all interfaces, including the computation
  of gradients.
class_docstr_tok: ["Test","that","the","template","is","compatible","with","all","interfaces",",","including","the","computation","of","gradients","."]
docstr: Test common iterables as inputs.
docstr_tok: ["Test","common","iterables","as","inputs","."]
code: def test_list_and_tuples(self, tol):
      """Test common iterables as inputs."""
  
      dev = qml.device("default.qubit", wires=4)
  
      circuit = qml.QNode(circuit_template, dev)
      circuit2 = qml.QNode(circuit_decomposed, dev)
  
      weights = [0.55, 0.72, 0.6, 0.54, 0.42, 0.65]
      res = circuit(weights)
      res2 = circuit2(weights)
      assert qml.math.allclose(res, res2, atol=tol, rtol=0)
  
      weights_tuple = (0.55, 0.72, 0.6, 0.54, 0.42, 0.65)
      res = circuit(weights_tuple)
      res2 = circuit2(weights_tuple)
  
      assert qml.math.allclose(res, res2, atol=tol, rtol=0)
  
imports: import pytest
  from pennylane import numpy
  import pennylane
label_desc: Use image node_id 1 for calling the TestInterfaces obj's underlying member method code with example usage: obj.test_list_and_tuples(tol) without return types