issues
search
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
Use Python's abstract base classes to remove strict type assertions where they're not necessary
Use Python's support for a more mathematical (and therefore verifiable) syntax for relations (e.g.,
x < y < z
)
Removes the use of
divmod
and
np.log2
to calculate powers of 2
Be more Pythonic in general
x < y < z
)divmod
andnp.log2
to calculate powers of 2