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

Added DoubleAsStringWithPrecision function - Single Qubit Gate #1884

Merged

Conversation

devikamehra
Copy link
Contributor

@devikamehra devikamehra commented Aug 25, 2024

Added DoubleAsStringWithPrecision function to Single Qubit Gate Kata

This is to address the issue #1788

@Manvi-Agrawal
Copy link
Contributor

Similar to your other PR. I got confused by the current title. It might be a good idea to :

  • Rename the PR title here to include the Kata name.
  • Include GitHub issue link created by Mariia(tcNickolas) for this

@devikamehra devikamehra changed the title Added DoubleAsStringWithPrecision function Added DoubleAsStringWithPrecision function - Single Qubit Gate Aug 25, 2024
Copy link
Contributor

@tcNickolas tcNickolas left a comment

Choose a reason for hiding this comment

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

Please make sure to use space after commas to make the code more readable.
The numbers we're using here are not usually less than 0.1, so I don't think they warrant such a high precision, 2-3 digits should be plenty - the main goal of this change is to shorten the error messages

Thank you!

Copy link
Contributor

@tcNickolas tcNickolas left a comment

Choose a reason for hiding this comment

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

The output of the updated code looks good! Just one suggestion to remove confusing comments.

Thank you!

@cesarzc cesarzc added this pull request to the merge queue Aug 29, 2024
Merged via the queue into microsoft:main with commit 58a54ca Aug 29, 2024
18 checks passed
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.

4 participants