Skip to content

Conversation

@Aubaert
Copy link
Collaborator

@Aubaert Aubaert commented Dec 9, 2025

No description provided.

BSDistribution, FockState
BSDistribution, FockState, ProviderFactory, BSSamples
from perceval.algorithm import Sampler
from perceval.runtime.rpc_handler import RPCHandler
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't use the RPCHandler class you just created ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't need it, this RPCHandler is purely for the internal behaviour of a RemoteProcessor created by the MyQML session. A user should not use it, nor even know that it exists.

"""
payload["platform_name"] = "" # Needed to make the QPUHandler happy
my_qlm_job = MyQLMHelper.make_job_from_payload(payload)
job_id = str(self._job_id)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these 2 lines (70-71) are not secured, there can be 2 calls from 2 different instances of RPCHandler at the same time and they can get the same value for _job_id

@Aubaert Aubaert merged commit 3fc5992 into main Jan 5, 2026
11 checks passed
@Aubaert Aubaert deleted the PCVL-1136-perceval-integration-with-qaptiva branch February 5, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants