class_docstr: Test that utility functions for fusing two qml.Rot gates function as expected.
docstr: Test that ZYZ Euler angles are correctly converted to quaternions.
docstr_tok: ["Test","that","ZYZ","Euler","angles","are","correctly","converted","to","quaternions","."]
code: def test_zyz_to_quat(self, angles, expected_quat):
      """Test that ZYZ Euler angles are correctly converted to quaternions."""
      obtained_quat = _zyz_to_quat(angles)
      assert qml.math.allclose(obtained_quat, expected_quat)
  
file_path: pennylane/tests/transforms/test_optimization/test_optimization_utils.py
imports: import pytest
  from utils import check_matrix_equivalence
  from pennylane.transforms.optimization.optimization_utils import find_next_gate, _zyz_to_quat, _quaternion_product, fuse_rot_angles
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 1 for calling the TestRotGateFusion obj's underlying member method code with example usage: obj.test_zyz_to_quat(angles, expected_quat) without return types