Skip to content

Commit

Permalink
need different text when there's no code
Browse files Browse the repository at this point in the history
  • Loading branch information
beckykd committed Dec 11, 2024
1 parent b447509 commit b9a59d6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions qiskit/circuit/library/arithmetic/piecewise_chebyshev.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class PiecewiseChebyshev(BlueprintCircuit):
Examples:
.. plot::
:alt: [Circuit diagram output by the previous code.]
:include-source:
import numpy as np
Expand Down
3 changes: 3 additions & 0 deletions qiskit/circuit/library/basis_change/qft.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions qiskit/circuit/library/boolean_logic/inner_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion qiskit/circuit/library/phase_estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions qiskit/circuit/library/quantum_volume.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b9a59d6

Please sign in to comment.