QuTech-Delft / OpenQL

OpenQL: A Portable Quantum Programming Framework for Quantum Accelerators. https://dl.acm.org/doi/10.1145/3474222
https://openql.readthedocs.io
Other
100 stars 44 forks source link

Unitary decomposition missing from the pre-built wheels #343

Closed DevelopDaily closed 2 years ago

DevelopDaily commented 4 years ago

This will fail:

from openql import openql as ql
u1 = ql.Unitary("U_name", [0.5+0.5j,0.5-0.5j,0.5-0.5j,0.5+0.5j])

The error message is:

AttributeError: module 'openql.openql' has no attribute 'Unitary'

That is copied from the documentation. The OpenQL is installed from the pre-built wheels like this:

pip install qutechopenql

Is the pre-built stuff up-to-date?

jvanstraten commented 4 years ago

It's actually the documentation that's running way ahead of the pre-built stuff, because the documentation didn't exist at all yet when the previous version was released. We're working on stabilizing the current develop branch to bring out a new release ASAP, however, and then we'll probably have ReadTheDocs track master instead. Or, in my opinion, we should just release more often now that the process is automated.

wvlothuizen commented 2 years ago

Solved in 0.10.0