class_docstr: This class provides a simple interface for interaction
  with the quantum circuit
class_docstr_tok: ["This","class","provides","a","simple","interface","for","interaction","with","the","quantum","circuit"]
code: def run(self, thetas):
      job = self.backend.run(
          [
              self._circuit.bind_parameters({self.theta: t})
              for t in thetas
          ],
          shots=self.shots,
      )
      results = job.result().get_counts()
  
      final = []
      for result in results:
          counts = np.array(list(result.values()))
          states = np.array(list(result.keys())).astype(float)
  
          # Compute probabilities for each state
          probabilities = counts / self.shots
  
          # Get state expectation
          expectation = np.sum(states * probabilities)
          final.append(expectation)
      return np.array(final)
  
imports: import torch
  import qiskit
  import numpy
  from lightwood.mixer.helpers.default_net import DefaultNet
  from lightwood.helpers.torch import LightwoodAutocast
label_desc: Use image node_id 2 for calling the QuantumCircuit obj's underlying member method code with example usage: obj.run(thetas) and returns: np