Skip to content

Commit

Permalink
fix shots
Browse files Browse the repository at this point in the history
  • Loading branch information
salmma committed Dec 19, 2023
1 parent 34ee063 commit 78ccf10
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from flask_smorest import Api

app.redis = Redis.from_url(app.config['REDIS_URL'], port=5040)
app.execute_queue = rq.Queue('qiskit-service_execute', connection=app.redis, default_timeout=3600)
app.execute_queue = rq.Queue('qiskit-service_execute', connection=app.redis, default_timeout=10000)
app.logger.setLevel(logging.INFO)


Expand Down
2 changes: 1 addition & 1 deletion app/ibmq_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def execute_job(transpiled_circuits, shots, backend, noise_model):
"""Generate qObject from transpiled circuit and execute it. Return result."""

try:
job = backend.run(assemble(transpiled_circuits), shots=shots, noise_model=noise_model)
job = backend.run(assemble(transpiled_circuits, shots=shots), noise_model=noise_model)

job_status = job.status()
while job_status not in JOB_FINAL_STATES:
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ qiskit-ibmq-provider==0.20.2
qiskit-ionq==0.4.4
qiskit-terra==0.24.0
qiskit_braket_provider==0.0.4
redis==4.3.1
requests==2.27.1
redis==5.0.1
requests==2.31.0
requests-ntlm==1.1.0
retworkx==0.12.1
rq==1.10.1
Expand Down

0 comments on commit 78ccf10

Please sign in to comment.