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

Fix the comment in intro.py example #1497 #1525

Merged
merged 6 commits into from
Apr 22, 2024
Merged

Fix the comment in intro.py example #1497 #1525

merged 6 commits into from
Apr 22, 2024

Conversation

Gaurang-Belekar
Copy link
Contributor

@Gaurang-Belekar Gaurang-Belekar commented Apr 17, 2024

Description

Fixed the comment in intro.py example,
Issue #1497

# Next, we can allocate qubits to the kernel via `qalloc(qubit_count)`.
# An empty call to `qalloc` will return a single qubit.
qubit = cudaq.qubit()

To

# Allocates qubit to |0> state
qubit = cudaq.qubit()

Fixes #1497

Copy link

copy-pr-bot bot commented Apr 17, 2024

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Copy link

github-actions bot commented Apr 17, 2024

CLA Assistant Lite bot All Contributors have signed the CLA.

@Gaurang-Belekar
Copy link
Contributor Author

I have read the Contributor License Agreement and I hereby accept the Terms.

@poojarao8
Copy link
Collaborator

poojarao8 commented Apr 22, 2024

This PR needs help with an issue stated in #1530.

@poojarao8
Copy link
Collaborator

While what you have done is not incorrect, in the issue I created #1497, I meant more along the lines of :

# Next, we can allocate a single qubit to the kernel via `qubit()`.
qubit = cudaq.qubit()

@Gaurang-Belekar
Copy link
Contributor Author

@poojarao8 I have changed the comment accordingly,
# Next, we can allocate a single qubit to the kernel via `qubit()`.
qubit = cudaq.qubit()

Earlier I referred to the comment mention in other files while intalising. Made relevant changes in the above commit. Also it is showing 'the dev environment build pending for approval'.

@bmhowe23
Copy link
Collaborator

bmhowe23 commented Apr 22, 2024

/ok to test

Command Bot: Processing...

@bmhowe23
Copy link
Collaborator

bmhowe23 commented Apr 22, 2024

/ok to test

Command Bot: Processing...

@bmhowe23 bmhowe23 enabled auto-merge (squash) April 22, 2024 22:07
Copy link
Collaborator

@bmhowe23 bmhowe23 left a comment

Choose a reason for hiding this comment

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

@bmhowe23 bmhowe23 merged commit df42bab into NVIDIA:main Apr 22, 2024
125 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 22, 2024
@bettinaheim bettinaheim added this to the release 0.7.1 milestone Apr 30, 2024
@bettinaheim bettinaheim added the no release notes Don't list this PR in the release notes label Apr 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
no release notes Don't list this PR in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix the comment in intro.py example
4 participants