Skip to content

Cleanup quantum_info.random#4058

Merged
mergify[bot] merged 11 commits into
Qiskit:masterfrom
chriseclectic:qi/random-ops
Apr 3, 2020
Merged

Cleanup quantum_info.random#4058
mergify[bot] merged 11 commits into
Qiskit:masterfrom
chriseclectic:qi/random-ops

Conversation

@chriseclectic
Copy link
Copy Markdown
Member

@chriseclectic chriseclectic commented Mar 31, 2020

Summary

  • Updates random_unitary to work for any subsystem dimensions, not just N-qubits.
  • Updates random_density_matrix to return a DensityMatrix object
  • Deprecates random_state and replaces with random_statevector that returns a Statevector object
  • Adds random_quantum_channel function that returns a random CPTP quantum channel (as Stinespring object).
  • Adds random_hermitian function that generates a random (hermitian Operator from Gaussian Unitary Ensemble.

Details and comments

TODO

  • Test random_quantum_channel
  • Test random_hermitian
  • Release note

@chriseclectic chriseclectic changed the title [WIP] Add random operator functions [WIP] Cleanup quantum_info.random Mar 31, 2020
@chriseclectic chriseclectic added this to the 0.13 milestone Mar 31, 2020
@chriseclectic chriseclectic changed the title [WIP] Cleanup quantum_info.random Cleanup quantum_info.random Apr 2, 2020
@chriseclectic chriseclectic added Changelog: Deprecated Add a "Deprecated" entry in the GitHub Release changelog. Changelog: Added Add an "Added" entry in the GitHub Release changelog. labels Apr 2, 2020
Copy link
Copy Markdown
Member

@ajavadia ajavadia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@mergify mergify Bot merged commit 7181799 into Qiskit:master Apr 3, 2020
@chriseclectic chriseclectic deleted the qi/random-ops branch April 15, 2020 14:49
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: Added Add an "Added" entry in the GitHub Release changelog. Changelog: Deprecated Add a "Deprecated" entry in the GitHub Release changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants