Skip to content

private or public functions in _accelerate #41

Discussion options

You must be logged in to vote

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 is CircuitInstruction (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.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@jakelishman
Comment options

@gadamc
Comment options

@jakelishman
Comment options

@jakelishman
Comment options

@gadamc
Comment options

Answer selected by mtreinish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants