botocore ReadTimeoutError while calling QBSolv on D-Wave's Quantum Annealer

1

Hello,

I submitted a QUBO to the Quantum Annealer from D-Wave via Amazon Braket. I used the QBSolv solver and my local Python IDE. Unfortunately, I received the "botocore ReadTimeoutError". Is there a way to increase the boto reading time within my local Python script to avoid this error?

Thank you.

4 Antworten
0

Can you share the script you are using to check if we can reproduce the error on our end?

Thank You!

AWS
Viraj
beantwortet vor 2 Jahren
  • I cannot share everything, since it is part of an ongoing research project, but here are the main parts. The error occurred during the execution of "QBSolv().sample_qubo(...)".

    choose a D-Wave Advantage system

    system = BraketDWaveSampler(s3_folder, device_arn='arn:aws:braket:::device/qpu/d-wave/Advantage_system4')

    use the FixedEmbeddingComposite() method with a fixed embedding

    solver_QA = FixedEmbeddingComposite(system, embedding)

    Initialize the QUBO matrix

    QUBO = defaultdict(int)

    Update the QUBO matrix based on the problem at hand

    for k in qubo_matrix_quadratic_dict: QUBO[(k[0], k[1])] += qubo_matrix_quadratic_dict[k]

    sampler = solver_QA response = QBSolv().sample_qubo(QUBO, solver=sampler, num_repeats=config_dict["num_repeats"], solver_limit=config_dict["solver_limit"], num_reads=config_dict["number_of_reads"], verbosity=1)

0

Hello, Thank you for using Braket!

Have you tried submitting the circuit again? I believe this is a boto api transient error. In order for us to reproduce the issue on our end can you provide us with the following information:

  1. This error was received immediately or after a certain period of time after submitting the circuit?
  2. Are you using any of the Braket example notebooks or a different script for this?
AWS
Viraj
beantwortet vor 2 Jahren
0

Thank you for your response.

  1. The error appeared after a certain period of time after submitting the circuit, I actually received some solutions without any errors, but after approx. one hour, the error message was shown.

  2. I did not use one of the example notebooks, I am using my own script within my local Python IDE (PyCharm).

beantwortet vor 2 Jahren
0

Hello, you could use the following to configure the read timeouts:

from botocore.config import Config
from braket.aws import AwsSession

config = Config(read_timeout=300)
session = AwsSession(config=config)

and then supply this session to the BraketDWaveSampler as:

system = BraketDWaveSampler(s3_destination_folder=s3_folder, 
                            device_arn='arn:aws:braket:::device/qpu/d-wave/Advantage_system4', 
                            aws_session=session)
AWS
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen