-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow Generator object for seed in QuantumVolume circuit (#4867)
* Fix RNG in QuantumVolume circuit * Add seed back to circuit name Note that if seed is a generator object the name contain [num_qubits, depth, Generator(PCG64)at<memory>] * Add reno * Add labels back to unitaries This means we are not using the shared Generator object, but instead instantiating new generator objects with fixed integer seeds for each call to random_unitary. * fixup * Update releasenotes/notes/quantum_volume_rng-2e6f46e3821aebeb.yaml Co-authored-by: Matthew Treinish <mtreinish@kortar.org> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
1 parent
e9d29ee
commit e4c3b39
Showing
3 changed files
with
34 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
features: | ||
- | | ||
Allow passing in a Numpy random ``Generator`` object for the ``seed`` kwarg | ||
in :class:`qiskit.circuit.library.QuantumVolume`. |
This file contains 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