code: def _qsp_to_qsvt(angles):
      r"""Converts qsp angles to qsvt angles."""
      new_angles = qml.math.array(copy.copy(angles))
      new_angles[0] += 3 * np.pi / 4
      new_angles[-1] -= np.pi / 4
  
      new_angles[1:-1] += np.pi / 2
      return new_angles
  
file_path: pennylane/pennylane/templates/subroutines/qsvt.py
imports: import copy
  import numpy
  import pennylane
  from pennylane.queuing import QueuingManager
  from pennylane.ops import BlockEncode, PCPhase
  from pennylane.ops.op_math import adjoint
  from pennylane.operation import AnyWires, Operation
label_desc: Use image node_id 2 for calling a global function with example usage: _qsp_to_qsvt(angles) and returns: new_angles