rigetti / reference-qvm

A reference implementation for a quantum virtual machine in Python
Apache License 2.0
46 stars 20 forks source link

Clean up unitary_generator a bit #3

Closed thomdixon closed 6 years ago

thomdixon commented 6 years ago
  1. Use Python's abstract base classes to remove strict type assertions where they're not necessary
  2. Use Python's support for a more mathematical (and therefore verifiable) syntax for relations (e.g., x < y < z)
  3. Removes the use of divmod and np.log2 to calculate powers of 2
  4. Be more Pythonic in general