Cleanup quantum_info.random#4058
Merged
Merged
Conversation
70c5bf5 to
2f212c5
Compare
2 tasks
* random_unitary_operator * random_hermitian_operator * random_quantum_channel
b98871b to
18064be
Compare
76aec02 to
0a96554
Compare
faisaldebouni
pushed a commit
to faisaldebouni/qiskit-terra
that referenced
this pull request
Aug 5, 2020
* Add random operator functions * random_unitary_operator * random_hermitian_operator * random_quantum_channel * Update random states to use Statevector and DensityMatrix * Move qi random folder to a file * Fixup docs * Allow passing in RandomState object for seed * Add random tests * Add release note * Linting and fix broken tests * more lint Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
random_unitaryto work for any subsystem dimensions, not just N-qubits.random_density_matrixto return a DensityMatrix objectrandom_stateand replaces withrandom_statevectorthat returns a Statevector objectrandom_quantum_channelfunction that returns a random CPTP quantum channel (asStinespringobject).random_hermitianfunction that generates a random (hermitianOperatorfrom Gaussian Unitary Ensemble.Details and comments
TODO
random_quantum_channelrandom_hermitian