private or public functions in _accelerate #41
-
Hi Qiskiters. We rely on a number of classes/functions that are quickly moving from python to rust and sometimes exposed in Also, I'm confused about the private/public status of Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
As of right now the entire The Qiskit stability policy is documented here (unfortunately the docs theme doesn't make directly linking easy, but it's in that page): https://docs.quantum.ibm.com/open-source/qiskit-sdk-version-strategy#qiskit-sdk-version-strategy and the Qiskit project policy is that an API is only considered public if we document it. The intent of |
Beta Was this translation helpful? Give feedback.
As of right now the entire
_accelerate
module is treated as a private module in Qiskit this is why it is prefixed with a_
which is the Python coding convention to indicate an API is internal: https://peps.python.org/pep-0008/#descriptive-naming-styles (since python as a language doesn't actually have a concept of private vs public). The only exceptions to that are where we have re-export functions to a public documented name. An example (the only one I can think of off the top of my head) of this isCircuitInstruction
(https://docs.quantum.ibm.com/api/qiskit/qiskit.circuit.CircuitInstruction) which is originally imported from_accelerate
but is re-exported as a public documented interface.