class_docstr: Tests generic controlled gates
class_docstr_tok: ["Tests","generic","controlled","gates"]
docstr: Test a controlled parametric operation with specified decimals.
code: def test_CRX_decimals(self):
      """Test a controlled parametric operation with specified decimals."""
  
      with qml.queuing.AnnotatedQueue() as q_tape:
          qml.CRX(1.234, wires=(0, 1))
  
      tape = QuantumScript.from_queue(q_tape)
      _, ax = tape_mpl(tape, decimals=2)
  
      # two wire labels, so CRX is third text object
      assert ax.texts[2].get_text() == "RX\n(1.23)"
      plt.close()
  
imports: import pytest
  import pennylane
  from pennylane.drawer import tape_mpl
  from pennylane.tape import QuantumScript
label_desc: Use image node_id 2 for calling the TestControlledGates obj's underlying member method code with example usage: obj.test_CRX_decimals() without return types