Skip to content

Commit

Permalink
Update qiskit_backend.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rawkintrevo authored Jan 21, 2025
1 parent 9941627 commit 8fbf8db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qumat/qiskit_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ def execute_circuit(circuit, backend, backend_config):
transpiled_circuit = qiskit.transpile(circuit, backend)
qobj = qiskit.assemble(transpiled_circuit, parameter_binds=[parameter_bindings], shots=backend_config['backend_options']['shots'])
job = backend.run(qobj)
result = job.result()[0].data.meas.get_counts() # TODO seems hacky, double check this later
result = job.result().data.meas.get_counts() # TODO seems hacky, double check this later
return result
else:
transpiled_circuit = qiskit.transpile(circuit, backend)
job = backend.run(transpiled_circuit, shots=backend_config['backend_options']['shots'])
result = job.result()[0].data.meas.get_counts() # TODO seems hacky, double check this later
result = job.result().data.meas.get_counts() # TODO seems hacky, double check this later
return result

# placeholder method for use in the testing suite
Expand Down

0 comments on commit 8fbf8db

Please sign in to comment.