code: def circuit_one_qubit_one_param_rx(inpt):
      r"""Circuit with a single-qubit, single-param, output function <Z>.
  
      By-hand calculation of :math:`f(x)` gives :math:`<Z> = cos^2(x/2) - sin^2(x/2) = cos(x)`.
      Fourier coeffs are :math:`c_1 = c_-1 = 0.5`.
      """
      qml.RX(inpt[0], wires=0)
      return qml.expval(qml.PauliZ(0))
  
imports: from functools import partial
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.fourier import coefficients
label_desc: Use image node_id 2 for calling a global function with example usage: circuit_one_qubit_one_param_rx(inpt) and returns: qml