MCPcopy Create free account
hub / github.com/Apress/quantum-machine-learning-python / simulate

Method simulate

Chapter_7/listing7_3/QAOA.py:61–65  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

59 self.circuit.append(self.starting_hamiltonian_evolution_circuit(beta_store[i]))
60
61 def simulate(self):
62 #print(self.circuit)
63 sim = cirq.Simulator()
64 waveform = sim.simulate(self.circuit)
65 return waveform
66
67
68 def expectation(self,waveform):

Callers 1

optimize_paramsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected