goodchemistryco / Tangelo

A python package for exploring end-to-end chemistry workflows on quantum computers and simulators.
https://goodchemistryco.github.io/Tangelo/
Other
99 stars 27 forks source link

switched where qiskit_noise_model is specified #354

Closed JamesB-1qbit closed 7 months ago

JamesB-1qbit commented 7 months ago

A test was failing because

backend = qiskit_aer.AerSimulator(method="statevector", noise_model=qiskit_noise_model)
translated_circuit = self.qiskit.transpile(translated_circuit, backend)
translated_circuit.save_statevector()
sim_results = backend.run(translated_circuit, shots=1).result()

works but our current version does not

backend = qiskit_aer.AerSimulator(method="statevector")
translated_circuit = self.qiskit.transpile(translated_circuit, backend)
translated_circuit.save_statevector()
sim_results = backend.run(translated_circuit, shots=1, noise_model=qiskit_noise_model).result()