class_docstr: Tests that qml.cond works correctly with other transforms.
class_docstr_tok: ["Tests","that","qml.cond","works","correctly","with","other","transforms","."]
docstr: Test that qml.cond operations Conditional operations as expected with
  qml.ctrl.
docstr_tok: ["Test","that","qml.cond","operations","Conditional","operations","as","expected","with","qml.ctrl","."]
code: def test_cond_operationss_with_ctrl(self, terminal_measurement):
      """Test that qml.cond operations Conditional operations as expected with
      qml.ctrl."""
      r = 1.234
  
      with qml.queuing.AnnotatedQueue() as q:
          m_0 = qml.measure(0)
          qml.cond(m_0, qml.ctrl(qml.RX, 1), qml.ctrl(qml.RY, 1))(
              r, wires=2
          )
          qml.apply(terminal_measurement)
  
      tape = qml.tape.QuantumScript.from_queue(q)
      ops = tape.operations
  
      assert len(ops) == 3
      assert ops[0].return_type == qml.measurements.MidMeasure
  
      assert isinstance(ops[1], qml.ops.Conditional)
      assert isinstance(ops[1].then_op, qml.ops.op_math.Controlled)
      assert qml.equal(ops[1].then_op.base, qml.RX(r, wires=2))
  
      assert isinstance(ops[2], qml.ops.Conditional)
      assert isinstance(ops[2].then_op, qml.ops.op_math.Controlled)
      assert qml.equal(ops[2].then_op.base, qml.RY(r, wires=2))
  
      assert len(tape.measurements) == 1
      assert tape.measurements[0] is terminal_measurement
  
file_path: pennylane/tests/ops/op_math/test_condition.py
imports: import pytest
  import pennylane
  from pennylane.ops.op_math.condition import ConditionalTransformError
label_desc: Use image node_id 2 for calling the TestOtherTransforms obj's underlying member method code with example usage: obj.test_cond_operationss_with_ctrl(terminal_measurement) without return types