Skip to content

Conversation

1ucian0
Copy link
Member

@1ucian0 1ucian0 commented Nov 28, 2017

Description

The current code is full of complicated semi-zero checks and flouting point errors because the use of floats. Since they are everywhere, I will take sometime to get rid of them. Comments? -> #158
This PR is a fix on #165.

Motivation and Context

This PR is an initial attempt to get rid of floats. Although, more work is needed. Probably the best way is to merge the slowly instead that have a huge PR.

How Has This Been Tested?

All the current tests pass.
The test test.python.test_quantumprogram.TestQuantumProgram.test_get_compiled_qasm was modified because it counted the amount of chars in resulting QASM. Values like 3.14... now are pi.

Types of changes

  • New feature (non-breaking change which adds functionality)

@diego-plan9 diego-plan9 self-requested a review November 30, 2017 17:41
Copy link
Member

@awcross1 awcross1 left a comment

Choose a reason for hiding this comment

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

Luciano and I went through the changes together and it looks good to me.

@atilag atilag merged commit be5b4e8 into Qiskit:master Dec 1, 2017
@adjs adjs mentioned this pull request Dec 3, 2017
8 tasks
taalexander pushed a commit to taalexander/qiskit-terra that referenced this pull request May 2, 2019
* Bump qiskit-terra version

There was a new qiskit-terra bugfix release today to fix an error in the
BasicAer python simulator. Bump the requirement for qiskit-terra to use
this.

* Add changelog
lia-approves pushed a commit to edasgupta/qiskit-terra that referenced this pull request Jul 30, 2019
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.

3 participants