From b9a59d60e7d0a21ba14a9345a726433f418aa97f Mon Sep 17 00:00:00 2001 From: Rebecca Dimock Date: Wed, 11 Dec 2024 15:22:34 -0600 Subject: [PATCH] need different text when there's no code --- qiskit/circuit/library/arithmetic/piecewise_chebyshev.py | 1 + qiskit/circuit/library/basis_change/qft.py | 3 +++ qiskit/circuit/library/boolean_logic/inner_product.py | 2 ++ qiskit/circuit/library/phase_estimation.py | 2 +- qiskit/circuit/library/quantum_volume.py | 6 +++--- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/qiskit/circuit/library/arithmetic/piecewise_chebyshev.py b/qiskit/circuit/library/arithmetic/piecewise_chebyshev.py index cc34d3631f59..025e4bb46a7b 100644 --- a/qiskit/circuit/library/arithmetic/piecewise_chebyshev.py +++ b/qiskit/circuit/library/arithmetic/piecewise_chebyshev.py @@ -37,6 +37,7 @@ class PiecewiseChebyshev(BlueprintCircuit): Examples: .. plot:: + :alt: [Circuit diagram output by the previous code.] :include-source: import numpy as np diff --git a/qiskit/circuit/library/basis_change/qft.py b/qiskit/circuit/library/basis_change/qft.py index cb14977b4463..512082ae1023 100644 --- a/qiskit/circuit/library/basis_change/qft.py +++ b/qiskit/circuit/library/basis_change/qft.py @@ -38,6 +38,7 @@ class QFT(BlueprintCircuit): For 4 qubits, the circuit that implements this transformation is: .. plot:: + :alt: [Diagram illustrating the previously described circuit.] from qiskit.circuit.library import QFT from qiskit.visualization.library import _generate_circuit_library_visualization @@ -48,6 +49,7 @@ class QFT(BlueprintCircuit): The respective circuit diagram is: .. plot:: + :alt: [Diagram illustrating the previously described circuit.] from qiskit.circuit.library import QFT from qiskit.visualization.library import _generate_circuit_library_visualization @@ -64,6 +66,7 @@ class QFT(BlueprintCircuit): on 5 qubits with approximation degree 2 yields (the barriers are dropped in this example): .. plot:: + :alt: [Diagram illustrating the previously described circuit.] from qiskit.circuit.library import QFT from qiskit.visualization.library import _generate_circuit_library_visualization diff --git a/qiskit/circuit/library/boolean_logic/inner_product.py b/qiskit/circuit/library/boolean_logic/inner_product.py index 84b3807fb56c..b4ee9a8dcdc8 100644 --- a/qiskit/circuit/library/boolean_logic/inner_product.py +++ b/qiskit/circuit/library/boolean_logic/inner_product.py @@ -55,6 +55,7 @@ class InnerProduct(QuantumCircuit): Reference Circuit: .. plot:: + :alt: [Diagram illustrating the previously described circuit.] from qiskit.circuit.library import InnerProduct from qiskit.visualization.library import _generate_circuit_library_visualization @@ -121,6 +122,7 @@ class InnerProductGate(Gate): Reference Circuit: .. plot:: + :alt: [Diagram illustrating the previously described circuit.] from qiskit.circuit import QuantumCircuit from qiskit.circuit.library import InnerProductGate diff --git a/qiskit/circuit/library/phase_estimation.py b/qiskit/circuit/library/phase_estimation.py index cdfc09d0af9a..705467414603 100644 --- a/qiskit/circuit/library/phase_estimation.py +++ b/qiskit/circuit/library/phase_estimation.py @@ -76,7 +76,7 @@ def __init__( Reference Circuit: .. plot:: - :alt: [Circuit diagram output by the previous code.] + :alt: [Diagram illustrating the previously described circuit.] from qiskit.circuit import QuantumCircuit from qiskit.circuit.library import PhaseEstimation diff --git a/qiskit/circuit/library/quantum_volume.py b/qiskit/circuit/library/quantum_volume.py index acec94b66f7e..932a04b5c923 100644 --- a/qiskit/circuit/library/quantum_volume.py +++ b/qiskit/circuit/library/quantum_volume.py @@ -35,7 +35,7 @@ class QuantumVolume(QuantumCircuit): **Reference Circuit:** .. plot:: - :alt: [Circuit diagram output by the previous code.] + :alt: [Diagram illustrating the previously described circuit.] from qiskit.circuit.library import QuantumVolume circuit = QuantumVolume(5, 6, seed=10) @@ -44,7 +44,7 @@ class QuantumVolume(QuantumCircuit): **Expanded Circuit:** .. plot:: - :alt: [Circuit diagram output by the previous code.] + :alt: [Diagram illustrating the previously described circuit.] from qiskit.circuit.library import QuantumVolume from qiskit.visualization.library import _generate_circuit_library_visualization @@ -152,7 +152,7 @@ def quantum_volume( **Reference Circuit:** .. plot:: - :alt: [Circuit diagram output by the previous code.] + :alt: [Diagram illustrating the previously described circuit.] from qiskit.circuit.library import quantum_volume circuit = quantum_volume(5, 6, seed=10)