Skip to content

Conversation

xinyi-joffre
Copy link
Collaborator

If using a target that does not have a dedicated provider class, TargetFactory falls back to the base Target class.

While this works for most Q# and QIR settings, it does not handle "shots" parameter, so it is not set on the input_param dictionary.

This can cause invisible or unexpected failures if target expects shots to be provided.

Adding default behavior to still handle "shots" parameter if it is passed into job.submit()

@xinyi-joffre xinyi-joffre requested a review from a team as a code owner October 4, 2025 03:39
@xinyi-joffre
Copy link
Collaborator Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinyi-joffre xinyi-joffre merged commit a512c8d into main Oct 4, 2025
6 checks passed
@xinyi-joffre xinyi-joffre deleted the xinyi/default-shots-param branch October 4, 2025 05:21
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