class_docstr: Test the qml.qsvt function.
class_docstr_tok: ["Test","the","qml.qsvt","function","."]
docstr: Test that the qsvt function matrix is correct for torch.
docstr_tok: ["Test","that","the","qsvt","function","matrix","is","correct","for","torch","."]
code: def test_qsvt_torch(self, input_matrix, angles, wires):
      """Test that the qsvt function matrix is correct for torch."""
      import torch
  
      default_matrix = qml.matrix(qml.qsvt(input_matrix, angles, wires))
  
      input_matrix = torch.tensor(input_matrix, dtype=float)
      angles = torch.tensor(angles, dtype=float)
  
      op = qml.qsvt(input_matrix, angles, wires)
  
      assert np.allclose(qml.matrix(op), default_matrix)
      assert qml.math.get_interface(qml.matrix(op)) == "torch"
  
imports: import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 4 for calling the Testqsvt obj's underlying member method code with example usage: obj.test_qsvt_torch(input_matrix, angles, wires) without return types