-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add random_clifford_circuit to API docs #14072
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
Add random_clifford_circuit to API docs #14072
Conversation
One or more of the following people are relevant to this code:
|
Pull Request Test Coverage Report for Build 14037738841Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @eliarbel for doing this. I agree that random_clifford_circuit
is sufficiently useful to appear in the API docs alongside random_circuit
.
Two small questions.
random_circuit
is also mentioned here in this file:
qiskit/qiskit/circuit/__init__.py
Lines 306 to 308 in a88ed60
There is also a utility for generating random circuits: | |
* :func:`random.random_circuit` |
Do you want to add a sentence about random clifford circuits there as well?
We also have a function random_iqp
that generates a random IQP circuit: https://docs.quantum.ibm.com/api/qiskit/dev/qiskit.circuit.library.random_iqp
. Do you think it should be also included in the docs? Other that that, I don't think we have any other "random circuit" functions but best to double-check.
note that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To avoid scope creep, I would settle for adding random_clifford_circuit
to
qiskit/qiskit/circuit/__init__.py
Lines 306 to 308 in a88ed60
There is also a utility for generating random circuits: | |
* :func:`random.random_circuit` |
random_iqp
, as it is not part of the random
submodule and there are a couple of other similar functions in the circuit library that would have to be moved (such as random_bitwise_xor
).
I agree with @ShellyGarion and @ElePT, I would keep the state as is and stay with these 2 functions in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
* Add random_clifford_circuit to API docs * Add it also to the circuit module doc (cherry picked from commit 08095d3)
Summary
This PR adds the
random_clifford_circuit
function to API docs. The function was added in #12347 and was mentioned in previous release notes.Details and comments