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

Python3 port, small bug fix. #6

Closed
wants to merge 5 commits into from
Closed

Conversation

LSaldyt
Copy link

@LSaldyt LSaldyt commented Jan 17, 2017

Ports codebase to Python3 and removes some small bugs in the process.
Note that the code actually runs under both Python3 and Python2

In short:

  • Most code was automatically ported with the 2to3 script
  • Exec behavior was addressed, as per this post.
  • A simple hash function (by name) was implemented for QuantumRegister types. It was unclear if a more advanced hash function was desired, but the outline for one is provided in a comment.

See #4 for more details.

Also, a small issue where lists of lists were not being converted to numpy arrays was also addressed.

Automatic porting via 2to3 script worked, and the current
QuantumComputer.py can run under both versions of python, but has some
errors when run with python3.
@LSaldyt LSaldyt mentioned this pull request Jan 17, 2017
@LSaldyt LSaldyt mentioned this pull request Mar 30, 2017
@corbett corbett closed this Dec 22, 2017
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