From 06b0b0f29f6a652531dcc95a70ef2d178ed9ba84 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Wed, 2 Oct 2024 13:50:36 -0400 Subject: [PATCH] Mention the new function is multithreaded in docstring --- qiskit/circuit/library/quantum_volume.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qiskit/circuit/library/quantum_volume.py b/qiskit/circuit/library/quantum_volume.py index d25db28ad7e..7049aaf9ab8 100644 --- a/qiskit/circuit/library/quantum_volume.py +++ b/qiskit/circuit/library/quantum_volume.py @@ -132,6 +132,11 @@ def quantum_volume( elements of SU(4) applied between corresponding pairs of qubits in a random bipartition. + This function is multithreaded and will launch a thread pool with threads equal to the number + of CPUs by default. You can tune the number of threads with the ``RAYON_NUM_THREADS`` + environment variable. For example, setting ``RAYON_NUM_THREADS=4`` would limit the thread pool + to 4 threads. + **Reference Circuit:** .. plot::