class_docstr: Test GPU with cuda for Torch device.
class_docstr_tok: ["Test","GPU","with","cuda","for","Torch","device","."]
docstr: Test goes to GPU for matrix valued inputs.
docstr_tok: ["Test","goes","to","GPU","for","matrix","valued","inputs","."]
code: def test_matrix_input(self):
      """Test goes to GPU for matrix valued inputs."""
  
      dev = qml.device("default.qubit.torch", wires=1)
  
      U = torch.eye(2, requires_grad=False, device=torch.device("cuda"))
  
      with qml.queuing.AnnotatedQueue() as q:
          qml.QubitUnitary(U, wires=0)
          qml.expval(qml.PauliZ(0))
  
      tape = qml.tape.QuantumScript.from_queue(q)
      res = dev.execute(tape)
      assert res.is_cuda
      assert "cuda" in dev._torch_device
  
file_path: pennylane/tests/gpu/test_gpu_torch.py
imports: import pytest
  import pennylane
label_desc: Use image node_id 3 for calling the TestTorchDevice obj's underlying member method code with example usage: obj.test_matrix_input() without return types