-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #1401 and #935. We reuse `<Attribute>`, which actually works out quite well! It understands how to parse when the data object has a value assigned to it like `= "my_value"`. It can also properly detect `isDedicatedPage`.  There is one weird edge case: Qiskit was improperly using `.. py:data::` inside a table in `utils.mdx`. Naively, it would cause issues with trying to render the component inside the table, which does not work. I fixed it in Qiskit `main`, but it would be too time consuming to fix on 0.35+. So, we now have a line to skip over converting to an `Attribute` Component if the element is inside a table. That means the table will continue to render the same as before on those historical docs - the biggest downside is that anchor links still will be broken for the page. <img width="863" alt="Screenshot 2024-09-06 at 9 40 51 AM" src="https://github.com/user-attachments/assets/f7355c1f-ed50-4293-976d-42f02fdf6013"> A follow up will simplify our linters like checking for orphan pages, since this PR fixes a lot of those problems.
- Loading branch information
1 parent
21c5f64
commit 1d89837
Showing
169 changed files
with
1,686 additions
and
801 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 |
---|---|---|
@@ -1,5 +1,14 @@ | ||
--- | ||
title: aqua_globals | ||
description: API reference for qiskit.aqua.aqua_globals | ||
in_page_toc_min_heading_level: 1 | ||
python_api_type: data | ||
python_api_name: qiskit.aqua.aqua_globals | ||
--- | ||
|
||
# aqua\_globals | ||
|
||
## aqua\_globals *= \<qiskit.aqua.aqua\_globals.QiskitAquaGlobals object>* | ||
<Attribute id="qiskit.aqua.aqua_globals" attributeValue="<qiskit.aqua.aqua_globals.QiskitAquaGlobals object>" isDedicatedPage={true}> | ||
Aqua class for global properties. | ||
</Attribute> | ||
|
||
Aqua class for global properties. |
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 |
---|---|---|
@@ -1,5 +1,14 @@ | ||
--- | ||
title: INFINITY | ||
description: API reference for qiskit.optimization.INFINITY | ||
in_page_toc_min_heading_level: 1 | ||
python_api_type: data | ||
python_api_name: qiskit.optimization.INFINITY | ||
--- | ||
|
||
# INFINITY | ||
|
||
## INFINITY *= 1e+20* | ||
<Attribute id="qiskit.optimization.INFINITY" attributeValue="1e+20" isDedicatedPage={true}> | ||
Convert a string or number to a floating point number, if possible. | ||
</Attribute> | ||
|
||
Convert a string or number to a floating point number, if possible. |
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
13 changes: 11 additions & 2 deletions
13
docs/api/qiskit/0.19/qiskit.quantum_info.two_qubit_cnot_decompose.mdx
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 |
---|---|---|
@@ -1,5 +1,14 @@ | ||
--- | ||
title: two_qubit_cnot_decompose | ||
description: API reference for qiskit.quantum_info.two_qubit_cnot_decompose | ||
in_page_toc_min_heading_level: 1 | ||
python_api_type: data | ||
python_api_name: qiskit.quantum_info.two_qubit_cnot_decompose | ||
--- | ||
|
||
# two\_qubit\_cnot\_decompose | ||
|
||
## two\_qubit\_cnot\_decompose *= \<qiskit.quantum\_info.synthesis.two\_qubit\_decompose.TwoQubitBasisDecomposer object>* | ||
<Attribute id="qiskit.quantum_info.two_qubit_cnot_decompose" attributeValue="<qiskit.quantum_info.synthesis.two_qubit_decompose.TwoQubitBasisDecomposer object>" isDedicatedPage={true}> | ||
A class for decomposing 2-qubit unitaries into minimal number of uses of a 2-qubit basis gate. | ||
</Attribute> | ||
|
||
A class for decomposing 2-qubit unitaries into minimal number of uses of a 2-qubit basis gate. |
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
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
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 |
---|---|---|
@@ -1,7 +1,16 @@ | ||
--- | ||
title: aqua_globals | ||
description: API reference for qiskit.aqua.aqua_globals | ||
in_page_toc_min_heading_level: 1 | ||
python_api_type: data | ||
python_api_name: qiskit.aqua.aqua_globals | ||
--- | ||
|
||
<span id="qiskit-aqua-aqua-globals" /> | ||
|
||
# qiskit.aqua.aqua\_globals | ||
# aqua\_globals | ||
|
||
## `aqua_globals` *= \<qiskit.aqua.aqua\_globals.QiskitAquaGlobals object>* | ||
<Attribute id="qiskit.aqua.aqua_globals" attributeValue="<qiskit.aqua.aqua_globals.QiskitAquaGlobals object>" isDedicatedPage={true}> | ||
Aqua class for global properties. | ||
</Attribute> | ||
|
||
Aqua class for global properties. |
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 |
---|---|---|
@@ -1,7 +1,16 @@ | ||
--- | ||
title: INFINITY | ||
description: API reference for qiskit.optimization.INFINITY | ||
in_page_toc_min_heading_level: 1 | ||
python_api_type: data | ||
python_api_name: qiskit.optimization.INFINITY | ||
--- | ||
|
||
<span id="qiskit-optimization-infinity" /> | ||
|
||
# qiskit.optimization.INFINITY | ||
# INFINITY | ||
|
||
## `INFINITY` *= 1e+20* | ||
<Attribute id="qiskit.optimization.INFINITY" attributeValue="1e+20" isDedicatedPage={true}> | ||
Convert a string or number to a floating point number, if possible. | ||
</Attribute> | ||
|
||
Convert a string or number to a floating point number, if possible. |
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
23 changes: 16 additions & 7 deletions
23
docs/api/qiskit/0.24/qiskit.quantum_info.two_qubit_cnot_decompose.mdx
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 |
---|---|---|
@@ -1,13 +1,22 @@ | ||
--- | ||
title: two_qubit_cnot_decompose | ||
description: API reference for qiskit.quantum_info.two_qubit_cnot_decompose | ||
in_page_toc_min_heading_level: 1 | ||
python_api_type: data | ||
python_api_name: qiskit.quantum_info.two_qubit_cnot_decompose | ||
--- | ||
|
||
<span id="qiskit-quantum-info-two-qubit-cnot-decompose" /> | ||
|
||
# qiskit.quantum\_info.two\_qubit\_cnot\_decompose | ||
# two\_qubit\_cnot\_decompose | ||
|
||
## `two_qubit_cnot_decompose` *= \<qiskit.quantum\_info.synthesis.two\_qubit\_decompose.TwoQubitBasisDecomposer object>* | ||
<Attribute id="qiskit.quantum_info.two_qubit_cnot_decompose" attributeValue="<qiskit.quantum_info.synthesis.two_qubit_decompose.TwoQubitBasisDecomposer object>" isDedicatedPage={true}> | ||
A class for decomposing 2-qubit unitaries into minimal number of uses of a 2-qubit basis gate. | ||
|
||
A class for decomposing 2-qubit unitaries into minimal number of uses of a 2-qubit basis gate. | ||
**Parameters** | ||
|
||
**Parameters** | ||
* **gate** ([*Gate*](qiskit.circuit.Gate "qiskit.circuit.Gate")) – Two-qubit gate to be used in the KAK decomposition. | ||
* **basis\_fidelity** (*float*) – Fidelity to be assumed for applications of KAK Gate. Default 1.0. | ||
* **euler\_basis** (*str*) – Basis string to be provided to OneQubitEulerDecomposer for 1Q synthesis. Valid options are \[‘ZYZ’, ‘ZXZ’, ‘XYX’, ‘U’, ‘U3’, ‘U1X’, ‘PSX’, ‘ZSX’, ‘RR’]. Default ‘U3’. | ||
</Attribute> | ||
|
||
* **gate** ([*Gate*](qiskit.circuit.Gate "qiskit.circuit.Gate")) – Two-qubit gate to be used in the KAK decomposition. | ||
* **basis\_fidelity** (*float*) – Fidelity to be assumed for applications of KAK Gate. Default 1.0. | ||
* **euler\_basis** (*str*) – Basis string to be provided to OneQubitEulerDecomposer for 1Q synthesis. Valid options are \[‘ZYZ’, ‘ZXZ’, ‘XYX’, ‘U’, ‘U3’, ‘U1X’, ‘PSX’, ‘ZSX’, ‘RR’]. Default ‘U3’. |
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
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
Oops, something went wrong.