Get the expected values

def get\_backend(self,

self.qnnet.cx(q[k],q[dim+k]) # Exploitation Stage for l in range(0,dim): self.qnnet.cx(q[l],q[2\*dim+l]) self.qnnet.cx(q[dim+l],q[2\*dim+l]) # Quantum Measurement for m in range(0,dim): self.qnnet.measure(q[2\*dim+m], c[dim-1-m]) # Execute the algorithm on the backend job\_exp = execute(self.qnnet, backend = backend\_used, shots = num\_shots) # Plot the histogram plot\_histogram(job\_exp.result().get\_counts(self.qnnet))
