class_docstr: Tests conditional operations
docstr: Test that the quantum conditional operations applied by controlling
  on the zero outcome match the output of controlled rotations.
docstr_tok: ["Test","that","the","quantum","conditional","operations","applied","by","controlling","on","the","zero","outcome","match","the","output","of","controlled","rotations","."]
code: def test_conditional_rotations_assert_zero_state(self, device, ops):
      """Test that the quantum conditional operations applied by controlling
      on the zero outcome match the output of controlled rotations."""
      dev = qml.device(device, wires=3)
      r = 2.345
  
      op, controlled_op = ops
  
      @qml.qnode(dev)
      def normal_circuit(rads):
          qml.Hadamard(0)
          controlled_op(rads, wires=[0, 1])
          return qml.probs(wires=1)
  
      @qml.qnode(dev)
      @qml.defer_measurements
      def quantum_control_circuit(rads):
          qml.Hadamard(0)
          qml.PauliX(0)
          m_0 = qml.measure(0)
          qml.cond(m_0 == 0, op)(rads, wires=1)
          return qml.probs(wires=1)
  
      normal_probs = normal_circuit(r)
      cond_probs = quantum_control_circuit(r)
  
      assert np.allclose(normal_probs, cond_probs)
  
imports: import math
  import pytest
  import pennylane
  from pennylane.measurements import MidMeasureMP, MeasurementValue
  import pennylane.numpy
  from pennylane.devices import DefaultQubit
label_desc: Use image node_id 8 for calling the TestConditionalOperations obj's underlying member method code with example usage: obj.test_conditional_rotations_assert_zero_state(device, ops) and returns: qml, qml