Skip to content

Added DoubleAsStringWithPrecision function - Single Qubit Gate - #1884

Merged
César Zaragoza Cortés (cesarzc) merged 3 commits into
microsoft:mainfrom
devikamehra:devikamehra/doubleToString-SingleQubit
Aug 29, 2024
Merged

César Zaragoza Cortés (cesarzc) merged 3 commits into
microsoft:mainfrom
devikamehra:devikamehra/doubleToString-SingleQubit

Conversation

@devikamehra

@devikamehra Devika Mehra (devikamehra) commented Aug 25, 2024 •

Copy link
Copy Markdown
Contributor

Added DoubleAsStringWithPrecision function to Single Qubit Gate Kata

This is to address the issue #1788

@Manvi-Agrawal

Copy link
Copy Markdown
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 Devika Mehra (devikamehra) changed the title Added DoubleAsStringWithPrecision function Added DoubleAsStringWithPrecision function - Single Qubit Gate Aug 25, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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!

Merged via the queue into microsoft:main with commit 58a54ca Aug 29, 2024
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