class_docstr: Tests for the qml.simplify method used with operators.
class_docstr_tok: ["Tests","for","the","qml.simplify","method","used","with","operators","."]
docstr: Test that simplification can be jitted.
docstr_tok: ["Test","that","simplification","can","be","jitted","."]
code: def test_jit_simplification(self):
      """Test that simplification can be jitted."""
  
      import jax
  
      sum_op = qml.sum(qml.PauliX(0), qml.PauliX(0))
      simp_op = jax.jit(qml.simplify)(sum_op)
  
      assert qml.equal(simp_op, qml.s_prod(2.0, qml.PauliX(0)))
  
file_path: pennylane/tests/ops/functions/test_simplify.py
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.tape import QuantumScript
label_desc: Use image node_id 4 for calling the TestSimplifyOperators obj's underlying member method code with example usage: obj.test_jit_simplification() without return types