MCS - minimal code snippets #20
Replies: 2 comments 2 replies
-
100% yes! Docstrings with examples is not something Qiskit does often enough! Let's make a list of methods of those obvious cases that need an example and they are simple enough to be few lines. They could be great for the |
Beta Was this translation helpful? Give feedback.
-
For the reference, this is a beautiful example of what I meant. This contrasts greatly with, for example, this |
Beta Was this translation helpful? Give feedback.
-
(Maybe too much work - Qiskit is huge, I know)
One thing I would love to see consistently in the Qiskit reference documentation pages would be the most minimal code example using each thing in the documentation. These don't have to be full examples, or even make complete sense. The sole purpose would be to show in a split second how to use or call something in the documentation - just one line or two.
Beta Was this translation helpful? Give feedback.
All reactions