class_docstr: Test some expectation values obtained from qubit-based devices after
  application of gates.
class_docstr_tok: ["Test","some","expectation","values","obtained","from","qubit-based","devices","after","application","of","gates","."]
docstr: Tests supported non-parametrized gates that act on a single wire
docstr_tok: ["Tests","supported","non-parametrized","gates","that","act","on","a","single","wire"]
code: def test_supported_gate_single_wire_no_parameters(
      self, device, tol, name, expected_output
  ):
      """Tests supported non-parametrized gates that act on a single wire"""
      n_wires = 1
      dev = device(n_wires)
  
      op = getattr(qml.ops, name)
  
      @qml.qnode(dev)
      def circuit():
          op(wires=0)
          return qml.expval(qml.PauliZ(0))
  
      assert np.isclose(circuit(), expected_output, atol=tol(dev.shots))
  
file_path: pennylane/pennylane/devices/tests/test_gates_with_expval.py
imports: from math import sqrt, pi
  import pytest
  import numpy
  from flaky import flaky
  import pennylane
label_desc: Use image node_id 5 for calling the TestGatesQubitExpval obj's underlying member method code with example usage: obj.test_supported_gate_single_wire_no_parameters(device, tol, name, expected_output) and returns: qml