-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
DAGCircuit Documentation types outdated #2820
Comments
I just took a look at the current master docstring for If it's just a matter of the hosted documentation and pip release not being up to date, that will get corrected automatically after we release 0.9 with the bit classes. They didn't exist in 0.8.x so the published documentation is correct for the released version. |
I checked out the latest version and you're right about |
It also looks like |
Sorry for the slow response. On taking another look at this the |
With the introduction of the Bit classes in Qiskit#2414 the arguments for many of the methods in the DAGCircuit class, which often deal with individual bits, were changed to deal with these new classes instead of tuples. However, in that process a couple of docstrings were missed and not updated to reflect the expected types. This commit corrects the oversight and updates the docstrings for those cases. Fixes Qiskit#2820
* Update dagcircuit docstrings for bit class arguments With the introduction of the Bit classes in #2414 the arguments for many of the methods in the DAGCircuit class, which often deal with individual bits, were changed to deal with these new classes instead of tuples. However, in that process a couple of docstrings were missed and not updated to reflect the expected types. This commit corrects the oversight and updates the docstrings for those cases. Fixes #2820 * Update one more docstring and error message access
* Update dagcircuit docstrings for bit class arguments With the introduction of the Bit classes in Qiskit#2414 the arguments for many of the methods in the DAGCircuit class, which often deal with individual bits, were changed to deal with these new classes instead of tuples. However, in that process a couple of docstrings were missed and not updated to reflect the expected types. This commit corrects the oversight and updates the docstrings for those cases. Fixes Qiskit#2820 * Update one more docstring and error message access
Information
The documentation of DAGCircuit still references tuples instead of the QuantumRegisters as input type for wires and qargs. This does not work any more.
What is the current behavior?
An excerpt from the current documentation:
which lists tuples as expected type.
The text was updated successfully, but these errors were encountered: