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 incorrect syntax in broadcasting example. #536

Merged
merged 2 commits into from
May 9, 2024

Conversation

dlyongemallo
Copy link
Contributor

Summary

The example given for broadcasting uses the incorrect syntax for declaring quantum registers. This is a minor edit to fix the typo.

Details and comments

The correct syntax (see, e.g., here, or even just down below in this very same doc) is:

qubit[SIZE] q;

The current documentation incorrectly puts the size after the register name:

qubit q[SIZE];

jakelishman
jakelishman previously approved these changes May 9, 2024
Copy link
Contributor

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

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

Thanks!

@jakelishman jakelishman merged commit 4ca1d79 into openqasm:main May 9, 2024
11 checks passed
@dlyongemallo dlyongemallo deleted the fix_broadcasting_syntax branch May 10, 2024 05:49
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.

None yet

2 participants