Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error in SamplerV2 examples #12323

Open
2 of 5 tasks
rsatoh-c opened this issue May 1, 2024 · 1 comment
Open
2 of 5 tasks

Syntax error in SamplerV2 examples #12323

rsatoh-c opened this issue May 1, 2024 · 1 comment
Labels
documentation Something is not clear or an error documentation mod: primitives Related to the Primitives module

Comments

@rsatoh-c
Copy link

rsatoh-c commented May 1, 2024

URL to the relevant documentation

https://docs.quantum.ibm.com/api/qiskit/primitives#overview-of-samplerv2

Select all that apply

  • typo
  • code bug
  • out-of-date content
  • broken link
  • other

Describe the fix.

In the example code, print functions have redundant parentheses and run is missing closing parenthesis.

print(f"The primitive-job finished with result {job_result}"))
 
# run a sampler job on the parameterized circuits
job2 = sampler.run([(pqc, theta1), (pqc2, theta2)]
job_result = job2.result()
print(f"The primitive-job finished with result {job_result}"))
@rsatoh-c rsatoh-c changed the title Syntax error in primitive v2 examples Syntax error in SamplerV2 examples May 1, 2024
@abbycross
Copy link
Contributor

Hi @rsatoh-c! Looks like this issue should be posted in the qiskit/qiskit repo, which is where the API docs source files live: https://github.com/Qiskit/qiskit/issues/new?assignees=&labels=bug&projects=&template=BUG_REPORT.yaml - can you please open an issue there? Thanks, and I will close this issue here.

@Eric-Arellano Eric-Arellano reopened this May 1, 2024
@Eric-Arellano Eric-Arellano transferred this issue from Qiskit/documentation May 1, 2024
@jakelishman jakelishman added documentation Something is not clear or an error documentation mod: primitives Related to the Primitives module labels May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Something is not clear or an error documentation mod: primitives Related to the Primitives module
Projects
None yet
Development

No branches or pull requests

6 participants