From 997b1399e141ecd23f13151ba5a91b5bf44ca121 Mon Sep 17 00:00:00 2001 From: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com> Date: Fri, 1 Nov 2024 13:57:43 -0400 Subject: [PATCH] Regen with language output --- docs/api/qiskit/dev/circuit.mdx | 2 +- docs/api/qiskit/dev/circuit_library.mdx | 146 +++++++++--------- docs/api/qiskit/dev/passmanager.mdx | 4 +- docs/api/qiskit/dev/pulse.mdx | 20 +-- docs/api/qiskit/dev/qasm2.mdx | 8 +- docs/api/qiskit/dev/qasm3.mdx | 2 +- .../dev/qiskit.circuit.QuantumCircuit.mdx | 32 ++-- .../dev/qiskit.circuit.library.CCXGate.mdx | 4 +- .../dev/qiskit.circuit.library.CCZGate.mdx | 2 +- ...t.circuit.library.CDKMRippleCarryAdder.mdx | 4 +- .../dev/qiskit.circuit.library.CHGate.mdx | 4 +- .../dev/qiskit.circuit.library.CPhaseGate.mdx | 2 +- .../dev/qiskit.circuit.library.CRXGate.mdx | 4 +- .../dev/qiskit.circuit.library.CRYGate.mdx | 4 +- .../dev/qiskit.circuit.library.CRZGate.mdx | 4 +- .../dev/qiskit.circuit.library.CSGate.mdx | 2 +- .../dev/qiskit.circuit.library.CSXGate.mdx | 4 +- .../dev/qiskit.circuit.library.CSdgGate.mdx | 2 +- .../dev/qiskit.circuit.library.CSwapGate.mdx | 4 +- .../dev/qiskit.circuit.library.CU1Gate.mdx | 2 +- .../dev/qiskit.circuit.library.CU3Gate.mdx | 4 +- .../dev/qiskit.circuit.library.CUGate.mdx | 4 +- .../dev/qiskit.circuit.library.CXGate.mdx | 4 +- .../dev/qiskit.circuit.library.CYGate.mdx | 4 +- .../dev/qiskit.circuit.library.CZGate.mdx | 2 +- .../dev/qiskit.circuit.library.DCXGate.mdx | 2 +- .../dev/qiskit.circuit.library.Diagonal.mdx | 2 +- .../qiskit.circuit.library.DraperQFTAdder.mdx | 2 +- .../dev/qiskit.circuit.library.ECRGate.mdx | 4 +- .../qiskit.circuit.library.EfficientSU2.mdx | 2 +- .../qiskit/dev/qiskit.circuit.library.GMS.mdx | 2 +- .../qiskit/dev/qiskit.circuit.library.GR.mdx | 2 +- .../qiskit/dev/qiskit.circuit.library.GRX.mdx | 2 +- .../qiskit/dev/qiskit.circuit.library.GRY.mdx | 2 +- .../qiskit/dev/qiskit.circuit.library.GRZ.mdx | 2 +- .../qiskit.circuit.library.GroverOperator.mdx | 2 +- .../dev/qiskit.circuit.library.HGate.mdx | 2 +- ...ircuit.library.HRSCumulativeMultiplier.mdx | 2 +- .../dev/qiskit.circuit.library.IGate.mdx | 2 +- .../qiskit.circuit.library.InnerProduct.mdx | 2 +- .../qiskit.circuit.library.LinearFunction.mdx | 2 +- ...t.circuit.library.LinearPauliRotations.mdx | 2 +- .../dev/qiskit.circuit.library.MCMT.mdx | 2 +- .../qiskit.circuit.library.MCPhaseGate.mdx | 2 +- .../dev/qiskit.circuit.library.NLocal.mdx | 2 +- ...qiskit.circuit.library.PauliFeatureMap.mdx | 2 +- .../qiskit.circuit.library.PauliTwoDesign.mdx | 2 +- .../dev/qiskit.circuit.library.PhaseGate.mdx | 2 +- .../qiskit.circuit.library.PhaseOracle.mdx | 2 +- ...qiskit.circuit.library.RGQFTMultiplier.mdx | 2 +- .../dev/qiskit.circuit.library.RGate.mdx | 2 +- .../dev/qiskit.circuit.library.RVGate.mdx | 2 +- .../dev/qiskit.circuit.library.RXGate.mdx | 2 +- .../dev/qiskit.circuit.library.RXXGate.mdx | 2 +- .../dev/qiskit.circuit.library.RYGate.mdx | 2 +- .../dev/qiskit.circuit.library.RYYGate.mdx | 2 +- .../dev/qiskit.circuit.library.RZGate.mdx | 2 +- .../dev/qiskit.circuit.library.RZXGate.mdx | 4 +- .../dev/qiskit.circuit.library.RZZGate.mdx | 2 +- .../qiskit.circuit.library.RealAmplitudes.mdx | 2 +- .../dev/qiskit.circuit.library.SGate.mdx | 2 +- .../dev/qiskit.circuit.library.SXGate.mdx | 2 +- .../dev/qiskit.circuit.library.SdgGate.mdx | 2 +- .../dev/qiskit.circuit.library.SwapGate.mdx | 2 +- .../dev/qiskit.circuit.library.TGate.mdx | 2 +- .../dev/qiskit.circuit.library.TdgGate.mdx | 2 +- .../dev/qiskit.circuit.library.U1Gate.mdx | 2 +- .../dev/qiskit.circuit.library.U2Gate.mdx | 2 +- .../dev/qiskit.circuit.library.U3Gate.mdx | 2 +- .../dev/qiskit.circuit.library.UGate.mdx | 2 +- ...it.circuit.library.VBERippleCarryAdder.mdx | 2 +- .../qiskit.circuit.library.WeightedAdder.mdx | 2 +- .../dev/qiskit.circuit.library.XGate.mdx | 2 +- .../qiskit.circuit.library.XXMinusYYGate.mdx | 4 +- .../qiskit.circuit.library.XXPlusYYGate.mdx | 4 +- .../dev/qiskit.circuit.library.YGate.mdx | 2 +- .../qiskit.circuit.library.ZFeatureMap.mdx | 2 +- .../dev/qiskit.circuit.library.ZGate.mdx | 2 +- .../qiskit.circuit.library.ZZFeatureMap.mdx | 10 +- .../dev/qiskit.circuit.library.iSwapGate.mdx | 4 +- .../dev/qiskit.dagcircuit.DAGDependency.mdx | 2 +- ...skit.providers.fake_provider.Fake20QV1.mdx | 2 +- ...providers.fake_provider.Fake27QPulseV1.mdx | 2 +- ...iskit.providers.fake_provider.Fake5QV1.mdx | 2 +- ....providers.fake_provider.Fake7QPulseV1.mdx | 2 +- .../qiskit/dev/qiskit.pulse.ScheduleBlock.mdx | 8 +- .../dev/qiskit.quantum_info.CNOTDihedral.mdx | 2 +- .../dev/qiskit.quantum_info.Clifford.mdx | 2 +- .../dev/qiskit.quantum_info.DensityMatrix.mdx | 10 +- .../dev/qiskit.quantum_info.PauliList.mdx | 8 +- .../dev/qiskit.quantum_info.SparsePauliOp.mdx | 4 +- .../qiskit.quantum_info.StabilizerState.mdx | 2 +- .../dev/qiskit.quantum_info.Statevector.mdx | 10 +- ...qiskit.transpiler.passes.AlignMeasures.mdx | 4 +- ...ranspiler.passes.Commuting2qGateRouter.mdx | 2 +- ...ranspiler.passes.ConstrainedReschedule.mdx | 4 +- ...ranspiler.passes.MergeAdjacentBarriers.mdx | 2 +- .../dev/qiskit.transpiler.passes.PadDelay.mdx | 2 +- ...qiskit.transpiler.passes.SolovayKitaev.mdx | 6 +- docs/api/qiskit/dev/qpy.mdx | 80 +++++----- docs/api/qiskit/dev/synthesis.mdx | 6 +- docs/api/qiskit/dev/transpiler.mdx | 26 ++-- docs/api/qiskit/dev/transpiler_plugins.mdx | 2 +- .../dev/transpiler_synthesis_plugins.mdx | 4 +- docs/api/qiskit/dev/visualization.mdx | 2 +- 105 files changed, 299 insertions(+), 299 deletions(-) diff --git a/docs/api/qiskit/dev/circuit.mdx b/docs/api/qiskit/dev/circuit.mdx index 124b54a071f..c6861d117a1 100644 --- a/docs/api/qiskit/dev/circuit.mdx +++ b/docs/api/qiskit/dev/circuit.mdx @@ -690,7 +690,7 @@ Consult [the control-flow construction documentation](qiskit.circuit.QuantumCirc If two operations in a circuit commute, we can swap the order in which they are applied. This can allow for optimizations and simplifications, for example, if it allows to merge or cancel gates: -```python +```text ┌─────────┐ ┌─────────┐ ┌─────────┐ q_0: ┤ Rz(0.5) ├──■──┤ Rz(1.2) ├──■── q_0: ┤ Rz(1.7) ├ └─────────┘┌─┴─┐└──┬───┬──┘┌─┴─┐ = └──┬───┬──┘ diff --git a/docs/api/qiskit/dev/circuit_library.mdx b/docs/api/qiskit/dev/circuit_library.mdx index f9041779139..a7c810484fb 100644 --- a/docs/api/qiskit/dev/circuit_library.mdx +++ b/docs/api/qiskit/dev/circuit_library.mdx @@ -48,7 +48,7 @@ print(gate.power(1/2).to_matrix()) # √X gate print(gate.control(1).to_matrix()) # CX (controlled X) gate ``` -```python +```text [[0.+0.j 1.+0.j] [1.+0.j 0.+0.j]] [[0.5+0.5j 0.5-0.5j] @@ -143,7 +143,7 @@ diagonal = Diagonal([1, 1, 1, 1]) print(diagonal.num_qubits) ``` -```python +```text 1 2 ``` @@ -411,7 +411,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 2a\_1: - ```python + ```text ┌───┐┌───┐ q_0: ┤ X ├┤ X ├ └───┘└───┘ @@ -431,7 +431,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 2a\_2: - ```python + ```text q_0: ──■────■── ┌─┴─┐┌─┴─┐ q_1: ┤ X ├┤ X ├ @@ -452,7 +452,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 2a\_3: - ```python + ```text q_0: ──■────■── │ │ q_1: ──■────■── @@ -475,7 +475,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 4a\_1: - ```python + ```text q_0: ───────■─────────■── │ │ q_1: ──■────┼────■────┼── @@ -502,7 +502,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 4a\_2: - ```python + ```text q_0: ──■─────────■─────── │ │ q_1: ──■────■────■────■── @@ -527,7 +527,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 4a\_3: - ```python + ```text q_0: ──■────■────■────■── │ ┌─┴─┐ │ ┌─┴─┐ q_1: ──┼──┤ X ├──┼──┤ X ├ @@ -550,7 +550,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 4b\_1: - ```python + ```text q_0: ───────■─────────■── │ │ q_1: ──■────┼────■────┼── @@ -575,7 +575,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 4b\_2: - ```python + ```text q_0: ──■─────────■─────── │ │ q_1: ──■────■────■────■── @@ -598,7 +598,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 5a\_1: - ```python + ```text q_0: ──■────■────■────■────■── │ ┌─┴─┐ │ ┌─┴─┐ │ q_1: ──■──┤ X ├──■──┤ X ├──┼── @@ -621,7 +621,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 5a\_2: - ```python + ```text q_0: ──■─────────■─────────■── │ ┌───┐ │ ┌───┐ │ q_1: ──■──┤ X ├──■──┤ X ├──┼── @@ -644,7 +644,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 5a\_3: - ```python + ```text q_0: ───────■─────────■────■── ┌─┴─┐ ┌─┴─┐ │ q_1: ──■──┤ X ├──■──┤ X ├──┼── @@ -667,7 +667,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 5a\_4: - ```python + ```text ┌───┐ ┌───┐ q_0: ──■──┤ X ├──■──┤ X ├ ┌─┴─┐└───┘┌─┴─┐├───┤ @@ -689,7 +689,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 6a\_1: - ```python + ```text ┌───┐ ┌───┐ ┌───┐ q_0: ──■──┤ X ├──■──┤ X ├──■──┤ X ├ ┌─┴─┐└─┬─┘┌─┴─┐└─┬─┘┌─┴─┐└─┬─┘ @@ -711,7 +711,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 6a\_2: - ```python + ```text q_0: ──■────■────■────■────■────■── │ ┌─┴─┐ │ ┌─┴─┐ │ ┌─┴─┐ q_1: ──■──┤ X ├──■──┤ X ├──■──┤ X ├ @@ -734,7 +734,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 6a\_3: - ```python + ```text q_0: ───────■─────────■────■────■── ┌─┴─┐ ┌─┴─┐ │ ┌─┴─┐ q_1: ──■──┤ X ├──■──┤ X ├──■──┤ X ├ @@ -757,7 +757,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 6a\_4: - ```python + ```text q_0: ───────■──────────────■─────── ┌─┴─┐ ┌───┐ │ ┌───┐ q_1: ──■──┤ X ├──■──┤ X ├──■──┤ X ├ @@ -780,7 +780,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 6b\_1: - ```python + ```text q_0: ──■─────────■────■─────────■── │ ┌─┴─┐ │ ┌─┴─┐ q_1: ──■────■──┤ X ├──■────■──┤ X ├ @@ -803,7 +803,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 6b\_2: - ```python + ```text q_0: ───────■────■─────────■────■── │ ┌─┴─┐ │ ┌─┴─┐ q_1: ──■────■──┤ X ├──■────■──┤ X ├ @@ -826,7 +826,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 6c\_1: - ```python + ```text q_0: ──■─────────■─────────■────■── │ ┌───┐ │ ┌───┐ │ ┌─┴─┐ q_1: ──■──┤ X ├──■──┤ X ├──■──┤ X ├ @@ -849,7 +849,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 7a\_1: - ```python + ```text ┌───┐ ┌───┐ q_0: ┤ X ├──■─────────■────■──┤ X ├──■── └─┬─┘┌─┴─┐ │ ┌─┴─┐└─┬─┘ │ @@ -873,7 +873,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 7b\_1: - ```python + ```text ┌───┐ ┌───┐ q_0: ┤ X ├──■─────────■────■──┤ X ├──■── └───┘┌─┴─┐ │ ┌─┴─┐└───┘ │ @@ -897,7 +897,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 7c\_1: - ```python + ```text ┌───┐ ┌───┐ q_0: ┤ X ├──■─────────■────■──┤ X ├──■── └───┘┌─┴─┐ │ ┌─┴─┐└───┘ │ @@ -921,7 +921,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 7d\_1: - ```python + ```text ┌───┐ ┌───┐ q_0: ┤ X ├──■─────────■────■──┤ X ├──■── └─┬─┘┌─┴─┐ │ ┌─┴─┐└─┬─┘ │ @@ -945,7 +945,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 7e\_1: - ```python + ```text ┌───┐ ┌───┐ q_0: ┤ X ├──■─────────■────■──┤ X ├──■── └───┘┌─┴─┐ │ ┌─┴─┐└───┘ │ @@ -969,7 +969,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9a\_1: - ```python + ```text ┌───┐ ┌───┐ ┌───┐ q_0: ┤ X ├──■──┤ X ├──■────■──┤ X ├──■── └─┬─┘┌─┴─┐└─┬─┘┌─┴─┐┌─┴─┐└─┬─┘┌─┴─┐ @@ -993,7 +993,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9c\_1: - ```python + ```text ┌───┐ ┌───┐┌───┐ ┌───┐ ┌───┐ q_0: ┤ X ├──■──┤ X ├┤ X ├─────┤ X ├──■───────┤ X ├ └─┬─┘┌─┴─┐└───┘└─┬─┘┌───┐└─┬─┘┌─┴─┐┌───┐└─┬─┘ @@ -1015,7 +1015,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9c\_2: - ```python + ```text q_0: ───────■────■──────────────■────■─────────■── ┌───┐ │ ┌─┴─┐┌───┐ ┌─┴─┐ │ ┌─┴─┐ q_1: ┤ X ├──■──┤ X ├┤ X ├─────┤ X ├──■───────┤ X ├ @@ -1038,7 +1038,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9c\_3: - ```python + ```text q_0: ───────■────────────────────────■──────────── ┌───┐ │ ┌───┐┌───┐ ┌───┐ │ ┌───┐ q_1: ┤ X ├──■──┤ X ├┤ X ├─────┤ X ├──■───────┤ X ├ @@ -1061,7 +1061,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9c\_4: - ```python + ```text q_0: ──■────■─────────■──────────────■──────────── ┌─┴─┐ │ ┌───┐┌─┴─┐ ┌───┐ │ ┌───┐ q_1: ┤ X ├──■──┤ X ├┤ X ├─────┤ X ├──■───────┤ X ├ @@ -1084,7 +1084,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9c\_5: - ```python + ```text q_0: ────────────■─────────■──────────────■─────── ┌───┐ ┌─┴─┐┌───┐ │ ┌───┐ │ ┌───┐ q_1: ┤ X ├──■──┤ X ├┤ X ├──┼──┤ X ├──■────┼──┤ X ├ @@ -1107,7 +1107,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9c\_6: - ```python + ```text q_0: ───────■────■─────────■─────────■────■─────── ┌───┐ │ ┌─┴─┐┌───┐ │ ┌───┐ │ │ ┌───┐ q_1: ┤ X ├──■──┤ X ├┤ X ├──┼──┤ X ├──■────┼──┤ X ├ @@ -1130,7 +1130,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9c\_7: - ```python + ```text q_0: ──■────■────■────■────■─────────■────■─────── ┌─┴─┐ │ ┌─┴─┐┌─┴─┐ │ ┌───┐ │ │ ┌───┐ q_1: ┤ X ├──■──┤ X ├┤ X ├──┼──┤ X ├──■────┼──┤ X ├ @@ -1153,7 +1153,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9c\_8: - ```python + ```text q_0: ──■─────────■────■─────────■──────────────■── ┌─┴─┐ ┌─┴─┐┌─┴─┐ ┌─┴─┐ ┌─┴─┐ q_1: ┤ X ├──■──┤ X ├┤ X ├─────┤ X ├──■───────┤ X ├ @@ -1176,7 +1176,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9c\_9: - ```python + ```text q_0: ──■────■────■────■─────────■────■─────────■── ┌─┴─┐ │ ┌─┴─┐┌─┴─┐ ┌─┴─┐ │ ┌─┴─┐ q_1: ┤ X ├──■──┤ X ├┤ X ├─────┤ X ├──■───────┤ X ├ @@ -1199,7 +1199,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9c\_10: - ```python + ```text q_0: ──■─────────■────■────■────■─────────■────■── ┌─┴─┐ ┌─┴─┐┌─┴─┐ │ ┌─┴─┐ │ ┌─┴─┐ q_1: ┤ X ├──■──┤ X ├┤ X ├──┼──┤ X ├──■────┼──┤ X ├ @@ -1222,7 +1222,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9c\_11: - ```python + ```text q_0: ───────■────■─────────■────■────■────■────■── ┌───┐ │ ┌─┴─┐┌───┐ │ ┌─┴─┐ │ │ ┌─┴─┐ q_1: ┤ X ├──■──┤ X ├┤ X ├──┼──┤ X ├──■────┼──┤ X ├ @@ -1245,7 +1245,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9c\_12: - ```python + ```text q_0: ──■────■────■────■────■────■────■────■────■── ┌─┴─┐ │ ┌─┴─┐┌─┴─┐ │ ┌─┴─┐ │ │ ┌─┴─┐ q_1: ┤ X ├──■──┤ X ├┤ X ├──┼──┤ X ├──■────┼──┤ X ├ @@ -1268,7 +1268,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9d\_1: - ```python + ```text ┌───┐ ┌───┐ ┌───┐ q_0: ──■───────┤ X ├───────■──┤ X ├───────■──┤ X ├ ┌─┴─┐┌───┐└─┬─┘┌───┐┌─┴─┐└─┬─┘┌───┐┌─┴─┐└─┬─┘ @@ -1290,7 +1290,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9d\_2: - ```python + ```text q_0: ──■────■────■──────────────■──────────────■── │ │ ┌─┴─┐ ┌─┴─┐ ┌─┴─┐ q_1: ──■────┼──┤ X ├───────■──┤ X ├───────■──┤ X ├ @@ -1313,7 +1313,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9d\_3: - ```python + ```text q_0: ──■────■───────────────────■───────────────── │ │ ┌───┐ ┌─┴─┐ ┌───┐ q_1: ──■────┼──┤ X ├───────■──┤ X ├───────■──┤ X ├ @@ -1336,7 +1336,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9d\_4: - ```python + ```text q_0: ───────■─────────■──────────────■──────────── │ ┌───┐ │ ┌───┐ │ ┌───┐ q_1: ──■────┼──┤ X ├──┼────■──┤ X ├──┼────■──┤ X ├ @@ -1359,7 +1359,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9d\_5: - ```python + ```text q_0: ──■────■─────────■─────────■────■──────────── │ │ ┌───┐ │ ┌─┴─┐ │ ┌───┐ q_1: ──■────┼──┤ X ├──┼────■──┤ X ├──┼────■──┤ X ├ @@ -1382,7 +1382,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9d\_6: - ```python + ```text q_0: ──■────■──────────────■────■─────────■─────── │ │ ┌───┐ │ ┌─┴─┐ │ ┌───┐ q_1: ──■────┼──┤ X ├───────■──┤ X ├───────■──┤ X ├ @@ -1405,7 +1405,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9d\_7: - ```python + ```text q_0: ──■────■─────────■────■────■────■────■─────── │ │ ┌───┐ │ │ ┌─┴─┐ │ │ ┌───┐ q_1: ──■────┼──┤ X ├──┼────■──┤ X ├──┼────■──┤ X ├ @@ -1428,7 +1428,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9d\_8: - ```python + ```text q_0: ──■────■────■────■─────────■────■─────────■── │ │ ┌─┴─┐ │ ┌─┴─┐ │ ┌─┴─┐ q_1: ──■────┼──┤ X ├──┼────■──┤ X ├──┼────■──┤ X ├ @@ -1451,7 +1451,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9d\_9: - ```python + ```text q_0: ──■────■────■─────────■────■─────────■────■── │ │ ┌─┴─┐ │ ┌─┴─┐ │ ┌─┴─┐ q_1: ──■────┼──┤ X ├───────■──┤ X ├───────■──┤ X ├ @@ -1474,7 +1474,7 @@ Template circuits for [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.lib Template 9d\_10: - ```python + ```text q_0: ──■────■────■────■────■────■────■────■────■── │ │ ┌─┴─┐ │ │ ┌─┴─┐ │ │ ┌─┴─┐ q_1: ──■────┼──┤ X ├──┼────■──┤ X ├──┼────■──┤ X ├ @@ -1501,7 +1501,7 @@ Template circuits over Clifford gates. Clifford template 2\_1: - ```python + ```text q_0: ─■──■─ │ │ q_1: ─■──■─ @@ -1521,7 +1521,7 @@ Template circuits over Clifford gates. Clifford template 2\_2: - ```python + ```text q_0: ──■────■── ┌─┴─┐┌─┴─┐ q_1: ┤ X ├┤ X ├ @@ -1542,7 +1542,7 @@ Template circuits over Clifford gates. Clifford template 2\_3: - ```python + ```text ┌───┐┌───┐ q_0: ┤ H ├┤ H ├ └───┘└───┘ @@ -1562,7 +1562,7 @@ Template circuits over Clifford gates. Clifford template 2\_4: - ```python + ```text q_0: ─X──X─ │ │ q_1: ─X──X─ @@ -1582,7 +1582,7 @@ Template circuits over Clifford gates. Clifford template 3\_1: - ```python + ```text ┌───┐┌───┐┌───┐ q_0: ┤ S ├┤ S ├┤ Z ├ └───┘└───┘└───┘ @@ -1602,7 +1602,7 @@ Template circuits over Clifford gates. Clifford template 4\_1: - ```python + ```text ┌───┐ q_0: ──■──┤ X ├──■───X─ ┌─┴─┐└─┬─┘┌─┴─┐ │ @@ -1624,7 +1624,7 @@ Template circuits over Clifford gates. Clifford template 4\_2: - ```python + ```text q_0: ───────■────────■─ ┌───┐┌─┴─┐┌───┐ │ q_1: ┤ H ├┤ X ├┤ H ├─■─ @@ -1645,7 +1645,7 @@ Template circuits over Clifford gates. Clifford template 4\_3: - ```python + ```text ┌───┐ ┌─────┐ q_0: ┤ S ├──■──┤ SDG ├──■── └───┘┌─┴─┐└─────┘┌─┴─┐ @@ -1667,7 +1667,7 @@ Template circuits over Clifford gates. Clifford template 4\_4: - ```python + ```text ┌───┐ ┌─────┐ q_0: ┤ S ├─■─┤ SDG ├─■─ └───┘ │ └─────┘ │ @@ -1688,7 +1688,7 @@ Template circuits over Clifford gates. Clifford template 5\_1: - > ```python + > ```text > q_0: ──■─────────■─────────■── > ┌─┴─┐ ┌─┴─┐ │ > q_1: ┤ X ├──■──┤ X ├──■────┼── @@ -1711,7 +1711,7 @@ Template circuits over Clifford gates. Clifford template 6\_1: - > ```python + > ```text > ┌───┐ ┌───┐┌───┐ > q_0: ┤ H ├──■──┤ H ├┤ X ├ > ├───┤┌─┴─┐├───┤└─┬─┘ @@ -1733,7 +1733,7 @@ Template circuits over Clifford gates. Clifford template 6\_2: - > ```python + > ```text > ┌───┐ > q_0: ┤ S ├──■───────────■───■─ > ├───┤┌─┴─┐┌─────┐┌─┴─┐ │ @@ -1755,7 +1755,7 @@ Template circuits over Clifford gates. Clifford template 6\_3: - ```python + ```text ┌───┐ ┌───┐ q_0: ─X──■─┤ H ├──■──┤ X ├───── │ │ └───┘┌─┴─┐└─┬─┘┌───┐ @@ -1777,7 +1777,7 @@ Template circuits over Clifford gates. Clifford template 6\_4: - ```python + ```text ┌───┐┌───┐┌───┐┌───┐┌───┐┌───┐ q_0: ┤ S ├┤ H ├┤ S ├┤ H ├┤ S ├┤ H ├ └───┘└───┘└───┘└───┘└───┘└───┘ @@ -1797,7 +1797,7 @@ Template circuits over Clifford gates. Clifford template 6\_5: - ```python + ```text ┌───┐ q_0: ─■───■───┤ S ├───■─────── │ ┌─┴─┐┌┴───┴┐┌─┴─┐┌───┐ @@ -1819,7 +1819,7 @@ Template circuits over Clifford gates. Clifford template 8\_1: - ```python + ```text ┌───┐ ┌───┐ ┌───┐┌─────┐ q_0: ──■───────┤ X ├─┤ S ├─┤ X ├┤ SDG ├ ┌─┴─┐┌───┐└─┬─┘┌┴───┴┐└─┬─┘└┬───┬┘ @@ -1841,7 +1841,7 @@ Template circuits over Clifford gates. Clifford template 8\_2: - ```python + ```text ┌───┐ q_0: ──■─────────■───┤ S ├───■──────────── ┌─┴─┐┌───┐┌─┴─┐┌┴───┴┐┌─┴─┐┌───┐┌───┐ @@ -1863,7 +1863,7 @@ Template circuits over Clifford gates. Clifford template 8\_3: - ```python + ```text q_0: ─────────────────■───────────────────────■── ┌───┐┌───┐┌───┐┌─┴─┐┌─────┐┌───┐┌─────┐┌─┴─┐ q_1: ┤ S ├┤ H ├┤ S ├┤ X ├┤ SDG ├┤ H ├┤ SDG ├┤ X ├ @@ -1888,7 +1888,7 @@ Template circuits with [`RZXGate`](qiskit.circuit.library.RZXGate "qiskit.circui RZX-based template for CX - RYGate - CX. - ```python + ```text ┌────────┐ ┌─────────┐┌─────────┐┌──────────┐ q_0: ──■──┤ RY(-ϴ) ├──■──┤ RX(π/2) ├┤0 ├┤ RX(-π/2) ├ ┌─┴─┐└────────┘┌─┴─┐└─────────┘│ RZX(ϴ) │└──────────┘ @@ -1902,7 +1902,7 @@ Template circuits with [`RZXGate`](qiskit.circuit.library.RZXGate "qiskit.circui RZX-based template for CX - RXGate - CX. - ```python + ```text ┌───┐ ┌───┐┌─────────┐┌─────────┐┌─────────┐┌──────────┐» q_0: ┤ X ├─────────┤ X ├┤ RZ(π/2) ├┤ RX(π/2) ├┤ RZ(π/2) ├┤0 ├» └─┬─┘┌───────┐└─┬─┘└─────────┘└─────────┘└─────────┘│ RZX(-ϴ) │» @@ -1921,7 +1921,7 @@ Template circuits with [`RZXGate`](qiskit.circuit.library.RZXGate "qiskit.circui RZX-based template for CX - RYGate - CX. - ```python + ```text ┌──────────┐ q_0: ──■─────────────■─────────────────────────────────┤0 ├─────────── ┌─┴─┐┌───────┐┌─┴─┐┌────────┐┌──────────┐┌───────┐│ RZX(-ϴ) │┌─────────┐ @@ -1935,7 +1935,7 @@ Template circuits with [`RZXGate`](qiskit.circuit.library.RZXGate "qiskit.circui RZX-based template for CX - RZGate - CX. - ```python + ```text » q_0: ──■────────────────────────────────────────────■───────────────────────» ┌─┴─┐┌───────┐┌────┐┌───────┐┌────┐┌────────┐┌─┴─┐┌────────┐┌─────────┐» @@ -1959,7 +1959,7 @@ Template circuits with [`RZXGate`](qiskit.circuit.library.RZXGate "qiskit.circui RZX-based template for CX - PhaseGate - CX. - ```python + ```text » q_0: ──■────────────■─────────────────────────────────────────────────────» ┌─┴─┐┌──────┐┌─┴─┐┌───────┐┌─────────┐┌─────────┐┌─────────┐┌───────┐» @@ -1978,7 +1978,7 @@ Template circuits with [`RZXGate`](qiskit.circuit.library.RZXGate "qiskit.circui RZX-based template for CX - RZGate - CX. - ```python + ```text » q_0: ──■─────────────■──────────────────────────────────────────────────────» ┌─┴─┐┌───────┐┌─┴─┐┌────────┐┌─────────┐┌─────────┐┌─────────┐┌───────┐» diff --git a/docs/api/qiskit/dev/passmanager.mdx b/docs/api/qiskit/dev/passmanager.mdx index 8df2148ef4a..2bd2f60ffe2 100644 --- a/docs/api/qiskit/dev/passmanager.mdx +++ b/docs/api/qiskit/dev/passmanager.mdx @@ -82,7 +82,7 @@ pm.run([123456789, 45654, 36785554]) Output: -```python +```text [12346789, 464, 36784] ``` @@ -122,7 +122,7 @@ pm.run([123456789, 45654, 36785554]) Output: -```python +```text [12346789, 45654, 36784] ``` diff --git a/docs/api/qiskit/dev/pulse.mdx b/docs/api/qiskit/dev/pulse.mdx index 90199c0abed..c1dcdcbd6c5 100644 --- a/docs/api/qiskit/dev/pulse.mdx +++ b/docs/api/qiskit/dev/pulse.mdx @@ -820,7 +820,7 @@ with pulse.build(backend) as drive_sched: print(d0) ``` -```python +```text DriveChannel(0) ``` @@ -1134,7 +1134,7 @@ drive_sched.draw() print(pulse_prog) ``` - ```python + ```text ScheduleBlock( ScheduleBlock( Play( @@ -1155,7 +1155,7 @@ drive_sched.draw() print(pulse_prog.references) ``` - ```python + ```text ReferenceManager: - ('block0', '634b3b50bd684e26a673af1fbd2d6c81'): ScheduleBlock(Play(Gaussian(... ``` @@ -1175,7 +1175,7 @@ drive_sched.draw() print(pulse_prog) ``` - ```python + ```text ScheduleBlock( ScheduleBlock( Play( @@ -1214,7 +1214,7 @@ drive_sched.draw() print(pulse_prog) ``` - ```python + ```text ScheduleBlock( ScheduleBlock( Play(Gaussian(duration=160, amp=(0.1+0j), sigma=40), DriveChannel(0)), @@ -1238,7 +1238,7 @@ drive_sched.draw() print(pulse_prog) ``` - ```python + ```text ScheduleBlock( Call( Schedule( @@ -1843,7 +1843,7 @@ with pulse.build(backend) as measure_sched: print(mem_slot) ``` -```python +```text MemorySlot(0) ``` @@ -1998,7 +1998,7 @@ with pulse.build(backend) as u3_sched: seconds, pulse.seconds_to_samples(1e-6))) ``` -```python +```text Number of qubits in backend: 1 There are 160 samples in 3.5555555555555554e-08 seconds There are 1e-06 seconds in 4500 samples. @@ -2049,7 +2049,7 @@ There are 1e-06 seconds in 4500 samples. print(pulse.num_qubits()) ``` - ```python + ```text 2 ``` @@ -2083,7 +2083,7 @@ There are 1e-06 seconds in 4500 samples. print(pulse.qubit_channels(0)) ``` - ```python + ```text {MeasureChannel(0), ControlChannel(0), DriveChannel(0), AcquireChannel(0), ControlChannel(1)} ``` diff --git a/docs/api/qiskit/dev/qasm2.mdx b/docs/api/qiskit/dev/qasm2.mdx index f58461dc5ae..e9f99b57a8f 100644 --- a/docs/api/qiskit/dev/qasm2.mdx +++ b/docs/api/qiskit/dev/qasm2.mdx @@ -236,7 +236,7 @@ qc.measure([0, 1], [0, 1]) print(qiskit.qasm2.dumps(qc)) ``` -```python +```text OPENQASM 2.0; include "qelib1.inc"; qreg q[2]; @@ -291,7 +291,7 @@ circuit = qiskit.qasm2.loads(program) circuit.draw() ``` -```python +```text ┌───┐ ┌─┐ q_0: ┤ H ├──■──┤M├─── └───┘┌─┴─┐└╥┘┌─┐ @@ -399,7 +399,7 @@ circuit = loads(program, custom_classical=customs) As a language, OpenQASM 2 does not have a way to specify the global phase of a complete program, nor of particular gate definitions. This means that parsers of the language may interpret particular gates with a different global phase than what you might expect. For example, the *de facto* standard library of OpenQASM 2 `qelib1.inc` contains definitions of `u1` and `rz` as follows: -```python +```text gate u1(lambda) q { U(0, 0, lambda) q; } @@ -444,7 +444,7 @@ This will use Qiskit’s [`PhaseGate`](qiskit.circuit.library.PhaseGate "qiskit. Operator(qasm2.loads(program, custom_instructions=custom)) ``` -```python +```text Operator([[1.000000e+00+0.j, 0.000000e+00+0.j], [0.000000e+00+0.j, 6.123234e-17+1.j]], input_dims=(2,), output_dims=(2,)) diff --git a/docs/api/qiskit/dev/qasm3.mdx b/docs/api/qiskit/dev/qasm3.mdx index dc90ccc4aa1..d3f141153c3 100644 --- a/docs/api/qiskit/dev/qasm3.mdx +++ b/docs/api/qiskit/dev/qasm3.mdx @@ -208,7 +208,7 @@ Currently only two high-level functions are offered, as Qiskit support for impor While we are still in the exploratory release period, to use either function, the package `qiskit_qasm3_import` must be installed. This can be done by installing Qiskit with the `qasm3-import` extra, such as by: - ```python + ```text pip install qiskit[qasm3-import] ``` diff --git a/docs/api/qiskit/dev/qiskit.circuit.QuantumCircuit.mdx b/docs/api/qiskit/dev/qiskit.circuit.QuantumCircuit.mdx index 3b3228f39d3..0a77fe43496 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.QuantumCircuit.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.QuantumCircuit.mdx @@ -1232,7 +1232,7 @@ python_api_name: qiskit.circuit.QuantumCircuit >>> lhs.compose(rhs, qubits=[3, 2], inplace=True) ``` - ```python + ```text ┌───┐ ┌─────┐ ┌───┐ lqr_1_0: ───┤ H ├─── rqr_0: ──■──┤ Tdg ├ lqr_1_0: ───┤ H ├─────────────── ├───┤ ┌─┴─┐└─────┘ ├───┤ @@ -1259,7 +1259,7 @@ python_api_name: qiskit.circuit.QuantumCircuit Remember that in the little-endian convention the leftmost operation will be at the bottom of the circuit. See also [the docs](/guides/construct-circuits) for more information. - ```python + ```text ┌────────┐ ┌─────┐ ┌─────┐ q_0: ┤ bottom ├ ⊗ q_0: ┤ top ├ = q_0: ─┤ top ├── └────────┘ └─────┘ ┌┴─────┴─┐ @@ -1916,7 +1916,7 @@ python_api_name: qiskit.circuit.QuantumCircuit output: - ```python + ```text ┌──────────────────────────────┐ q_0: ┤ Initialize(0.70711,-0.70711) ├ └──────────────────────────────┘ @@ -1935,7 +1935,7 @@ python_api_name: qiskit.circuit.QuantumCircuit output: - ```python + ```text ┌──────────────────┐ q_0: ┤0 ├ │ Initialize(0,1) │ @@ -1956,7 +1956,7 @@ python_api_name: qiskit.circuit.QuantumCircuit output: - ```python + ```text ┌────────────────────────────────────┐ q_0: ┤0 ├ │ Initialize(0,0.70711,-0.70711j,0) │ @@ -2137,7 +2137,7 @@ python_api_name: qiskit.circuit.QuantumCircuit circuit.draw() ``` - ```python + ```text ┌───┐┌─┐ q: ┤ H ├┤M├ └───┘└╥┘ @@ -2284,7 +2284,7 @@ python_api_name: qiskit.circuit.QuantumCircuit output: - ```python + ```text ┌─────────────────────────────────────┐ q_0: ┤ State Preparation(0.70711,-0.70711) ├ └─────────────────────────────────────┘ @@ -2303,7 +2303,7 @@ python_api_name: qiskit.circuit.QuantumCircuit output: - ```python + ```text ┌─────────────────────────┐ q_0: ┤0 ├ │ State Preparation(0,1) │ @@ -2324,7 +2324,7 @@ python_api_name: qiskit.circuit.QuantumCircuit output: - ```python + ```text ┌───────────────────────────────────────────┐ q_0: ┤0 ├ │ State Preparation(0,0.70711,-0.70711j,0) │ @@ -3442,7 +3442,7 @@ python_api_name: qiskit.circuit.QuantumCircuit qc.count_ops() ``` - ```python + ```text OrderedDict([('cx', 8), ('h', 5), ('x', 3), ('swap', 3)]) ``` @@ -3752,7 +3752,7 @@ python_api_name: qiskit.circuit.QuantumCircuit input: - ```python + ```text ┌───┐ q_0: ┤ H ├─────■────── └───┘┌────┴─────┐ @@ -3762,7 +3762,7 @@ python_api_name: qiskit.circuit.QuantumCircuit output: - ```python + ```text ┌───┐ q_0: ──────■──────┤ H ├ ┌─────┴─────┐└───┘ @@ -3835,7 +3835,7 @@ python_api_name: qiskit.circuit.QuantumCircuit input: - ```python + ```text ┌───┐ q_0: ┤ H ├─────■────── └───┘┌────┴─────┐ @@ -3845,7 +3845,7 @@ python_api_name: qiskit.circuit.QuantumCircuit output: - ```python + ```text ┌───┐ q_0: ─────■──────┤ H ├ ┌────┴─────┐└───┘ @@ -4004,7 +4004,7 @@ python_api_name: qiskit.circuit.QuantumCircuit input: - ```python + ```text ┌───┐ a_0: ┤ H ├──■───────────────── └───┘┌─┴─┐ @@ -4020,7 +4020,7 @@ python_api_name: qiskit.circuit.QuantumCircuit output: - ```python + ```text ┌───┐ b_0: ────────────────────┤ X ├ ┌───┐└─┬─┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.CCXGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.CCXGate.mdx index 04a2751c3ed..50fe9aa583d 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.CCXGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.CCXGate.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.CCXGate **Circuit symbol:** - ```python + ```text q_0: ──■── │ q_1: ──■── @@ -46,7 +46,7 @@ $$ In Qiskit’s convention, higher qubit indices are more significant (little endian convention). In many textbooks, controlled gates are presented with the assumption of more significant qubits as control, which in our case would be q\_2 and q\_1. Thus a textbook matrix for this gate will be: - ```python + ```text ┌───┐ q_0: ┤ X ├ └─┬─┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.CCZGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.CCZGate.mdx index 47fd37fe2c8..4d12c537484 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.CCZGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.CCZGate.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.circuit.library.CCZGate **Circuit symbol:** - ```python + ```text q_0: ─■─ │ q_1: ─■─ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.CDKMRippleCarryAdder.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.CDKMRippleCarryAdder.mdx index 98499c37a69..00aaa8a5300 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.CDKMRippleCarryAdder.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.CDKMRippleCarryAdder.mdx @@ -15,7 +15,7 @@ python_api_name: qiskit.circuit.library.CDKMRippleCarryAdder As an example, a ripple-carry adder circuit that performs addition on two 3-qubit sized registers with a carry-in bit (`kind="full"`) is as follows: - ```python + ```text ┌──────┐ ┌──────┐ cin_0: ┤2 ├─────────────────────────────────────┤2 ├ │ │┌──────┐ ┌──────┐│ │ @@ -41,7 +41,7 @@ python_api_name: qiskit.circuit.library.CDKMRippleCarryAdder The circuit diagram for the fixed-point adder (`kind="fixed"`) on 3-qubit sized inputs is - ```python + ```text ┌──────┐┌──────┐ ┌──────┐┌──────┐ a_0: ┤0 ├┤2 ├────────────────┤2 ├┤0 ├ │ ││ │┌──────┐┌──────┐│ ││ │ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.CHGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.CHGate.mdx index 5299f8581cd..80923de9a38 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.CHGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.CHGate.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.circuit.library.CHGate **Circuit symbol:** - ```python + ```text q_0: ──■── ┌─┴─┐ q_1: ┤ H ├ @@ -42,7 +42,7 @@ $$ In Qiskit’s convention, higher qubit indices are more significant (little endian convention). In many textbooks, controlled gates are presented with the assumption of more significant qubits as control, which in our case would be q\_1. Thus a textbook matrix for this gate will be: - ```python + ```text ┌───┐ q_0: ┤ H ├ └─┬─┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.CPhaseGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.CPhaseGate.mdx index 39fd4fa267d..967d1090a48 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.CPhaseGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.CPhaseGate.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.circuit.library.CPhaseGate **Circuit symbol:** - ```python + ```text q_0: ─■── │θ q_1: ─■── diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.CRXGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.CRXGate.mdx index 21db322a822..cb96e2fdc20 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.CRXGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.CRXGate.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.CRXGate **Circuit symbol:** - ```python + ```text q_0: ────■──── ┌───┴───┐ q_1: ┤ Rx(ϴ) ├ @@ -42,7 +42,7 @@ $$ In Qiskit’s convention, higher qubit indices are more significant (little endian convention). In many textbooks, controlled gates are presented with the assumption of more significant qubits as control, which in our case would be q\_1. Thus a textbook matrix for this gate will be: - ```python + ```text ┌───────┐ q_0: ┤ Rx(ϴ) ├ └───┬───┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.CRYGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.CRYGate.mdx index ab600c6afd5..c8a4abaf411 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.CRYGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.CRYGate.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.CRYGate **Circuit symbol:** - ```python + ```text q_0: ────■──── ┌───┴───┐ q_1: ┤ Ry(ϴ) ├ @@ -42,7 +42,7 @@ $$ In Qiskit’s convention, higher qubit indices are more significant (little endian convention). In many textbooks, controlled gates are presented with the assumption of more significant qubits as control, which in our case would be q\_1. Thus a textbook matrix for this gate will be: - ```python + ```text ┌───────┐ q_0: ┤ Ry(ϴ) ├ └───┬───┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.CRZGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.CRZGate.mdx index 2e300d14313..a0893fa65d2 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.CRZGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.CRZGate.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.circuit.library.CRZGate **Circuit symbol:** - ```python + ```text q_0: ────■──── ┌───┴───┐ q_1: ┤ Rz(θ) ├ @@ -42,7 +42,7 @@ $$ In Qiskit’s convention, higher qubit indices are more significant (little endian convention). In many textbooks, controlled gates are presented with the assumption of more significant qubits as control, which in our case would be q\_1. Thus a textbook matrix for this gate will be: - ```python + ```text ┌───────┐ q_0: ┤ Rz(θ) ├ └───┬───┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.CSGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.CSGate.mdx index aa38fb3c04b..935288777c6 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.CSGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.CSGate.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.CSGate **Circuit symbol:** - ```python + ```text q_0: ──■── ┌─┴─┐ q_1: ┤ S ├ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.CSXGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.CSXGate.mdx index 7c07df8c2cc..963841b9591 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.CSXGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.CSXGate.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.CSXGate **Circuit symbol:** - ```python + ```text q_0: ──■── ┌─┴──┐ q_1: ┤ √X ├ @@ -40,7 +40,7 @@ $$ In Qiskit’s convention, higher qubit indices are more significant (little endian convention). In many textbooks, controlled gates are presented with the assumption of more significant qubits as control, which in our case would be q\_1. Thus a textbook matrix for this gate will be: - ```python + ```text ┌────┐ q_0: ┤ √X ├ └─┬──┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.CSdgGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.CSdgGate.mdx index 0d6814899f1..80f3c4ea161 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.CSdgGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.CSdgGate.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.CSdgGate **Circuit symbol:** - ```python + ```text q_0: ───■─── ┌──┴──┐ q_1: ┤ Sdg ├ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.CSwapGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.CSwapGate.mdx index dbe830d690b..9fe36c13a3e 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.CSwapGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.CSwapGate.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.CSwapGate **Circuit symbol:** - ```python + ```text q_0: ─■─ │ q_1: ─X─ @@ -46,7 +46,7 @@ $$ In Qiskit’s convention, higher qubit indices are more significant (little endian convention). In many textbooks, controlled gates are presented with the assumption of more significant qubits as control, which in our case would be q\_2. Thus a textbook matrix for this gate will be: - ```python + ```text q_0: ─X─ │ q_1: ─X─ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.CU1Gate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.CU1Gate.mdx index 0ec7a9db2d0..ab33f37d328 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.CU1Gate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.CU1Gate.mdx @@ -30,7 +30,7 @@ $$ **Circuit symbol:** - ```python + ```text q_0: ─■── │θ q_1: ─■── diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.CU3Gate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.CU3Gate.mdx index 7cdfdfdb4ca..b7781fbfda4 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.CU3Gate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.CU3Gate.mdx @@ -31,7 +31,7 @@ $$ **Circuit symbol:** - ```python + ```text q_0: ──────■────── ┌─────┴─────┐ q_1: ┤ U3(ϴ,φ,λ) ├ @@ -57,7 +57,7 @@ $$ In Qiskit’s convention, higher qubit indices are more significant (little endian convention). In many textbooks, controlled gates are presented with the assumption of more significant qubits as control, which in our case would be q\_1. Thus a textbook matrix for this gate will be: - ```python + ```text ┌───────────┐ q_0: ┤ U3(ϴ,φ,λ) ├ └─────┬─────┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.CUGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.CUGate.mdx index 21864266048..1590d0235b3 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.CUGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.CUGate.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.circuit.library.CUGate **Circuit symbol:** - ```python + ```text q_0: ──────■────── ┌─────┴──────┐ q_1: ┤ U(ϴ,φ,λ,γ) ├ @@ -47,7 +47,7 @@ $$ In Qiskit’s convention, higher qubit indices are more significant (little endian convention). In many textbooks, controlled gates are presented with the assumption of more significant qubits as control, which in our case would be q\_1. Thus a textbook matrix for this gate will be: - ```python + ```text ┌────────────┐ q_0: ┤ U(ϴ,φ,λ,γ) ├ └─────┬──────┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.CXGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.CXGate.mdx index e09ba9b5276..581a6b1a95e 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.CXGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.CXGate.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.CXGate **Circuit symbol:** - ```python + ```text q_0: ──■── ┌─┴─┐ q_1: ┤ X ├ @@ -40,7 +40,7 @@ $$ In Qiskit’s convention, higher qubit indices are more significant (little endian convention). In many textbooks, controlled gates are presented with the assumption of more significant qubits as control, which in our case would be q\_1. Thus a textbook matrix for this gate will be: - ```python + ```text ┌───┐ q_0: ┤ X ├ └─┬─┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.CYGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.CYGate.mdx index 77b86eb776f..2e34759330b 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.CYGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.CYGate.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.CYGate **Circuit symbol:** - ```python + ```text q_0: ──■── ┌─┴─┐ q_1: ┤ Y ├ @@ -40,7 +40,7 @@ $$ In Qiskit’s convention, higher qubit indices are more significant (little endian convention). In many textbooks, controlled gates are presented with the assumption of more significant qubits as control, which in our case would be q\_1. Thus a textbook matrix for this gate will be: - ```python + ```text ┌───┐ q_0: ┤ Y ├ └─┬─┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.CZGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.CZGate.mdx index c12b9a97a46..6612cf80d00 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.CZGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.CZGate.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.circuit.library.CZGate **Circuit symbol:** - ```python + ```text q_0: ─■─ │ q_1: ─■─ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.DCXGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.DCXGate.mdx index e0aea6b85f4..0c64e820c87 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.DCXGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.DCXGate.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.DCXGate Can be applied to a [`QuantumCircuit`](qiskit.circuit.QuantumCircuit "qiskit.circuit.QuantumCircuit") with the [`dcx()`](qiskit.circuit.QuantumCircuit#dcx "qiskit.circuit.QuantumCircuit.dcx") method. - ```python + ```text ┌───┐ q_0: ──■──┤ X ├ ┌─┴─┐└─┬─┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.Diagonal.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.Diagonal.mdx index 0f68a1296d4..d294ae870ea 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.Diagonal.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.Diagonal.mdx @@ -15,7 +15,7 @@ python_api_name: qiskit.circuit.library.Diagonal Circuit symbol: - ```python + ```text ┌───────────┐ q_0: ┤0 ├ │ │ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.DraperQFTAdder.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.DraperQFTAdder.mdx index b2255ff3bb7..f19da6327d6 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.DraperQFTAdder.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.DraperQFTAdder.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.DraperQFTAdder As an example, a non-fixed\_point QFT adder circuit that performs addition on two 2-qubit sized registers is as follows: - ```python + ```text a_0: ─────────■──────■────────────────────────■──────────────── │ │ │ a_1: ─────────┼──────┼────────■──────■────────┼──────────────── diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.ECRGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.ECRGate.mdx index c6a84eb6527..dc59e6fa7cf 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.ECRGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.ECRGate.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.circuit.library.ECRGate **Circuit Symbol:** - ```python + ```text ┌─────────┐ ┌────────────┐┌────────┐┌─────────────┐ q_0: ┤0 ├ q_0: ┤0 ├┤ RX(pi) ├┤0 ├ │ ECR │ = │ RZX(pi/4) │└────────┘│ RZX(-pi/4) │ @@ -42,7 +42,7 @@ $$ In Qiskit’s convention, higher qubit indices are more significant (little endian convention). In the above example we apply the gate on (q\_0, q\_1) which results in the $X \otimes Z$ tensor order. Instead, if we apply it on (q\_1, q\_0), the matrix will be $Z \otimes X$: - ```python + ```text ┌─────────┐ q_0: ┤1 ├ │ ECR │ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.EfficientSU2.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.EfficientSU2.mdx index 7919ddac38c..75723150973 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.EfficientSU2.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.EfficientSU2.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.circuit.library.EfficientSU2 On 3 qubits and using the Pauli $Y$ and $Z$ su2\_gates as single qubit gates, the hardware efficient SU(2) circuit is represented by: - ```python + ```text ┌──────────┐┌──────────┐ ░ ░ ░ ┌───────────┐┌───────────┐ ┤ RY(θ[0]) ├┤ RZ(θ[3]) ├─░────────■───░─ ... ─░─┤ RY(θ[12]) ├┤ RZ(θ[15]) ├ ├──────────┤├──────────┤ ░ ┌─┴─┐ ░ ░ ├───────────┤├───────────┤ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.GMS.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.GMS.mdx index a01b17d72f7..defbf6335a9 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.GMS.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.GMS.mdx @@ -15,7 +15,7 @@ python_api_name: qiskit.circuit.library.GMS **Circuit symbol:** - ```python + ```text ┌───────────┐ q_0: ┤0 ├ │ │ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.GR.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.GR.mdx index 21560db0822..97930467c0a 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.GR.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.GR.mdx @@ -15,7 +15,7 @@ python_api_name: qiskit.circuit.library.GR **Circuit symbol:** - ```python + ```text ┌──────────┐ q_0: ┤0 ├ │ │ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.GRX.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.GRX.mdx index d9a0262bdcc..cc84083d6bf 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.GRX.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.GRX.mdx @@ -15,7 +15,7 @@ python_api_name: qiskit.circuit.library.GRX **Circuit symbol:** - ```python + ```text ┌──────────┐ q_0: ┤0 ├ │ │ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.GRY.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.GRY.mdx index 75d75af92ff..325d5af30ab 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.GRY.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.GRY.mdx @@ -15,7 +15,7 @@ python_api_name: qiskit.circuit.library.GRY **Circuit symbol:** - ```python + ```text ┌──────────┐ q_0: ┤0 ├ │ │ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.GRZ.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.GRZ.mdx index bdb24716567..e6c212af1f1 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.GRZ.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.GRZ.mdx @@ -15,7 +15,7 @@ python_api_name: qiskit.circuit.library.GRZ **Circuit symbol:** - ```python + ```text ┌──────────┐ q_0: ┤0 ├ │ │ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.GroverOperator.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.GroverOperator.mdx index 0ef35556f94..edcc5ac6800 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.GroverOperator.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.GroverOperator.mdx @@ -46,7 +46,7 @@ $$ Note that you can easily construct a phase oracle from a bitflip oracle by sandwiching the controlled X gate on the result qubit by a X and H gate. For instance - ```python + ```text Bitflip oracle Phaseflip oracle q_0: ──■── q_0: ────────────■──────────── ┌─┴─┐ ┌───┐┌───┐┌─┴─┐┌───┐┌───┐ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.HGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.HGate.mdx index 51c02495959..5996f1dae04 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.HGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.HGate.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.circuit.library.HGate **Circuit symbol:** - ```python + ```text ┌───┐ q_0: ┤ H ├ └───┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.HRSCumulativeMultiplier.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.HRSCumulativeMultiplier.mdx index 5996017b944..57c048ab74c 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.HRSCumulativeMultiplier.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.HRSCumulativeMultiplier.mdx @@ -15,7 +15,7 @@ python_api_name: qiskit.circuit.library.HRSCumulativeMultiplier Circuit uses the approach from \[1]. As an example, a multiplier circuit that performs a non-modular multiplication on two 3-qubit sized registers with the default adder is as follows (where `Adder` denotes the `CDKMRippleCarryAdder`): - ```python + ```text a_0: ────■───────────────────────── │ a_1: ────┼─────────■─────────────── diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.IGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.IGate.mdx index 6b05d6a36b3..bd6dab32b78 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.IGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.IGate.mdx @@ -28,7 +28,7 @@ $$ **Circuit symbol:** - ```python + ```text ┌───┐ q_0: ┤ I ├ └───┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.InnerProduct.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.InnerProduct.mdx index 1e87287f145..bdca917b55d 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.InnerProduct.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.InnerProduct.mdx @@ -22,7 +22,7 @@ $$ The corresponding unitary is a diagonal, which induces a -1 phase on any inputs where the inner product of the top and bottom registers is 1. Otherwise it keeps the input intact. - ```python + ```text q0_0: ─■────────── │ q0_1: ─┼──■─────── diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.LinearFunction.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.LinearFunction.mdx index bb2c28d429c..a009d0fb8bf 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.LinearFunction.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.LinearFunction.mdx @@ -21,7 +21,7 @@ python_api_name: qiskit.circuit.library.LinearFunction **Example:** the circuit - ```python + ```text q_0: ──■── ┌─┴─┐ q_1: ┤ X ├ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.LinearPauliRotations.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.LinearPauliRotations.mdx index e4253c3aadc..a269616435f 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.LinearPauliRotations.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.LinearPauliRotations.mdx @@ -15,7 +15,7 @@ python_api_name: qiskit.circuit.library.LinearPauliRotations For a register of state qubits $|x\rangle$, a target qubit $|0\rangle$ and the basis `'Y'` this circuit acts as: - ```python + ```text q_0: ─────────────────────────■───────── ... ────────────────────── │ . diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.MCMT.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.MCMT.mdx index 781068b63ea..c5a206c8f99 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.MCMT.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.MCMT.mdx @@ -15,7 +15,7 @@ python_api_name: qiskit.circuit.library.MCMT For example, the H gate controlled on 3 qubits and acting on 2 target qubit is represented as: - ```python + ```text ───■──── │ ───■──── diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.MCPhaseGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.MCPhaseGate.mdx index 2ca6980c266..388eea71148 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.MCPhaseGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.MCPhaseGate.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.circuit.library.MCPhaseGate **Circuit symbol:** - ```python + ```text q_0: ───■──── │ . diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.NLocal.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.NLocal.mdx index 3a1a17cf60e..a6a95e07161 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.NLocal.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.NLocal.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.NLocal For instance, a rotation block on 2 qubits and an entanglement block on 4 qubits using `'linear'` entanglement yields the following circuit. - ```python + ```text ┌──────┐ ░ ┌──────┐ ░ ┌──────┐ ┤0 ├─░─┤0 ├──────────────── ... ─░─┤0 ├ │ Rot │ ░ │ │┌──────┐ ░ │ Rot │ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.PauliFeatureMap.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.PauliFeatureMap.mdx index 3bb755fb4c1..f562a7d9caf 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.PauliFeatureMap.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.PauliFeatureMap.mdx @@ -37,7 +37,7 @@ $$ which will produce blocks of the form - ```python + ```text ┌───┐┌─────────────┐┌──────────┐ ┌───────────┐ ┤ H ├┤ P(2.0*x[0]) ├┤ RX(pi/2) ├──■──────────────────────────────────────■──┤ RX(-pi/2) ├ ├───┤├─────────────┤├──────────┤┌─┴─┐┌────────────────────────────────┐┌─┴─┐├───────────┤ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.PauliTwoDesign.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.PauliTwoDesign.mdx index bfd86f761ca..404f4036030 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.PauliTwoDesign.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.PauliTwoDesign.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.circuit.library.PauliTwoDesign For instance, the circuit could look like this (but note that choosing a different seed yields different Pauli rotations). - ```python + ```text ┌─────────┐┌──────────┐ ░ ┌──────────┐ ░ ┌──────────┐ q_0: ┤ RY(π/4) ├┤ RZ(θ[0]) ├─■─────░─┤ RY(θ[4]) ├─■─────░──┤ RZ(θ[8]) ├ ├─────────┤├──────────┤ │ ░ ├──────────┤ │ ░ ├──────────┤ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.PhaseGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.PhaseGate.mdx index b3a4568669c..22510c3c3ba 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.PhaseGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.PhaseGate.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.circuit.library.PhaseGate **Circuit symbol:** - ```python + ```text ┌──────┐ q_0: ┤ P(θ) ├ └──────┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.PhaseOracle.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.PhaseOracle.mdx index e5e6f6287c7..9ffbde02921 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.PhaseOracle.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.PhaseOracle.mdx @@ -302,7 +302,7 @@ python_api_name: qiskit.circuit.library.PhaseOracle The following is an example of a CNF expressed in the DIMACS format: - ```python + ```text c DIMACS CNF file with 3 satisfying assignments: 1 -2 3, -1 -2 -3, 1 2 -3. p cnf 3 5 -1 -2 -3 0 diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.RGQFTMultiplier.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.RGQFTMultiplier.mdx index b45b0e6ebe9..4db240504a3 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.RGQFTMultiplier.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.RGQFTMultiplier.mdx @@ -15,7 +15,7 @@ python_api_name: qiskit.circuit.library.RGQFTMultiplier Multiplication in this circuit is implemented using the procedure of Fig. 3 in \[1], where weighted sum rotations are implemented as given in Fig. 5 in \[1]. QFT is used on the output register and is followed by rotations controlled by input registers. The rotations transform the state into the product of two input registers in QFT base, which is reverted from QFT base using inverse QFT. As an example, a circuit that performs a modular QFT multiplication on two 2-qubit sized input registers with an output register of 2 qubits, is as follows: - ```python + ```text a_0: ────────────────────────────────────────■───────■──────■──────■──────────────── │ │ │ │ a_1: ─────────■───────■───────■───────■──────┼───────┼──────┼──────┼──────────────── diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.RGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.RGate.mdx index eae3b240e21..05f492140bf 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.RGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.RGate.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.RGate **Circuit symbol:** - ```python + ```text ┌──────┐ q_0: ┤ R(ϴ) ├ └──────┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.RVGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.RVGate.mdx index 9a3a436feb7..9975742ca2a 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.RVGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.RVGate.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.RVGate **Circuit symbol:** - ```python + ```text ┌─────────────────┐ q_0: ┤ RV(v_x,v_y,v_z) ├ └─────────────────┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.RXGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.RXGate.mdx index a4121c51ca6..1cc7527d069 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.RXGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.RXGate.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.RXGate **Circuit symbol:** - ```python + ```text ┌───────┐ q_0: ┤ Rx(ϴ) ├ └───────┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.RXXGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.RXXGate.mdx index 12700f49e92..f68198847f2 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.RXXGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.RXXGate.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.circuit.library.RXXGate **Circuit Symbol:** - ```python + ```text ┌─────────┐ q_0: ┤1 ├ │ Rxx(ϴ) │ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.RYGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.RYGate.mdx index 054196415e2..a15181f5342 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.RYGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.RYGate.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.RYGate **Circuit symbol:** - ```python + ```text ┌───────┐ q_0: ┤ Ry(ϴ) ├ └───────┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.RYYGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.RYYGate.mdx index 11ce584fce6..887b4df246e 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.RYYGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.RYYGate.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.circuit.library.RYYGate **Circuit Symbol:** - ```python + ```text ┌─────────┐ q_0: ┤1 ├ │ Ryy(ϴ) │ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.RZGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.RZGate.mdx index c7f0d81e219..3233a7e3b68 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.RZGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.RZGate.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.circuit.library.RZGate **Circuit symbol:** - ```python + ```text ┌───────┐ q_0: ┤ Rz(λ) ├ └───────┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.RZXGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.RZXGate.mdx index b2267e3953c..a86b01fe216 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.RZXGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.RZXGate.mdx @@ -21,7 +21,7 @@ python_api_name: qiskit.circuit.library.RZXGate **Circuit Symbol:** - ```python + ```text ┌─────────┐ q_0: ┤0 ├ │ Rzx(θ) │ @@ -46,7 +46,7 @@ $$ In Qiskit’s convention, higher qubit indices are more significant (little endian convention). In the above example we apply the gate on (q\_0, q\_1) which results in the $X \otimes Z$ tensor order. Instead, if we apply it on (q\_1, q\_0), the matrix will be $Z \otimes X$: - ```python + ```text ┌─────────┐ q_0: ┤1 ├ │ Rzx(θ) │ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.RZZGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.RZZGate.mdx index 8bef88efae6..74ff099229d 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.RZZGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.RZZGate.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.circuit.library.RZZGate **Circuit Symbol:** - ```python + ```text q_0: ───■──── │zz(θ) q_1: ───■──── diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.RealAmplitudes.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.RealAmplitudes.mdx index 98e5e6a652a..d2d9a19760b 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.RealAmplitudes.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.RealAmplitudes.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.RealAmplitudes For example a `RealAmplitudes` circuit with 2 repetitions on 3 qubits with `'reverse_linear'` entanglement is - ```python + ```text ┌──────────┐ ░ ░ ┌──────────┐ ░ ░ ┌──────────┐ ┤ Ry(θ[0]) ├─░────────■───░─┤ Ry(θ[3]) ├─░────────■───░─┤ Ry(θ[6]) ├ ├──────────┤ ░ ┌─┴─┐ ░ ├──────────┤ ░ ┌─┴─┐ ░ ├──────────┤ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.SGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.SGate.mdx index 16bbc5159cc..d3ef1885b66 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.SGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.SGate.mdx @@ -30,7 +30,7 @@ $$ **Circuit symbol:** - ```python + ```text ┌───┐ q_0: ┤ S ├ └───┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.SXGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.SXGate.mdx index b47fd6219ff..a731bd2a693 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.SXGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.SXGate.mdx @@ -26,7 +26,7 @@ $$ **Circuit symbol:** - ```python + ```text ┌────┐ q_0: ┤ √X ├ └────┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.SdgGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.SdgGate.mdx index 5a227b30e58..fb781e84c2a 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.SdgGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.SdgGate.mdx @@ -30,7 +30,7 @@ $$ **Circuit symbol:** - ```python + ```text ┌─────┐ q_0: ┤ Sdg ├ └─────┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.SwapGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.SwapGate.mdx index 52f36b4958e..59b76cc600f 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.SwapGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.SwapGate.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.circuit.library.SwapGate **Circuit symbol:** - ```python + ```text q_0: ─X─ │ q_1: ─X─ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.TGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.TGate.mdx index a75aa471dcb..7c4571500b9 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.TGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.TGate.mdx @@ -30,7 +30,7 @@ $$ **Circuit symbol:** - ```python + ```text ┌───┐ q_0: ┤ T ├ └───┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.TdgGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.TdgGate.mdx index 049f3c02cac..780a694c469 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.TdgGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.TdgGate.mdx @@ -30,7 +30,7 @@ $$ **Circuit symbol:** - ```python + ```text ┌─────┐ q_0: ┤ Tdg ├ └─────┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.U1Gate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.U1Gate.mdx index 6947c126d9d..79591b55a36 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.U1Gate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.U1Gate.mdx @@ -30,7 +30,7 @@ $$ **Circuit symbol:** - ```python + ```text ┌───────┐ q_0: ┤ U1(θ) ├ └───────┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.U2Gate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.U2Gate.mdx index 4869d21b24f..c34ce296707 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.U2Gate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.U2Gate.mdx @@ -30,7 +30,7 @@ $$ **Circuit symbol:** - ```python + ```text ┌─────────┐ q_0: ┤ U2(φ,λ) ├ └─────────┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.U3Gate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.U3Gate.mdx index 17bf46361cb..e0202d21499 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.U3Gate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.U3Gate.mdx @@ -28,7 +28,7 @@ $$ **Circuit symbol:** - ```python + ```text ┌───────────┐ q_0: ┤ U3(ϴ,φ,λ) ├ └───────────┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.UGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.UGate.mdx index abc51c0ef14..55762933b7a 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.UGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.UGate.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.UGate **Circuit symbol:** - ```python + ```text ┌──────────┐ q_0: ┤ U(ϴ,φ,λ) ├ └──────────┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.VBERippleCarryAdder.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.VBERippleCarryAdder.mdx index efa9c606667..b0fb3857a96 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.VBERippleCarryAdder.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.VBERippleCarryAdder.mdx @@ -15,7 +15,7 @@ python_api_name: qiskit.circuit.library.VBERippleCarryAdder This circuit performs inplace addition of two equally-sized quantum registers. As an example, a classical adder circuit that performs full addition (i.e. including a carry-in bit) on two 2-qubit sized registers is as follows: - ```python + ```text ┌────────┐ ┌───────────┐┌──────┐ cin_0: ┤0 ├───────────────────────┤0 ├┤0 ├ │ │ │ ││ │ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.WeightedAdder.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.WeightedAdder.mdx index 79c515e95e9..1e7f7c32060 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.WeightedAdder.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.WeightedAdder.mdx @@ -30,7 +30,7 @@ $$ For qubits in a circuit diagram, the first weight applies to the upper-most qubit. For an example where the state of 4 qubits is added into a sum register, the circuit can be schematically drawn as - ```python + ```text ┌────────┐ state_0: ┤0 ├ | state_0 * weights[0] │ │ | diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.XGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.XGate.mdx index 9dcd963124c..85befa60e6a 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.XGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.XGate.mdx @@ -26,7 +26,7 @@ $$ **Circuit symbol:** - ```python + ```text ┌───┐ q_0: ┤ X ├ └───┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.XXMinusYYGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.XXMinusYYGate.mdx index 87794000ac8..e1a0e653d4d 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.XXMinusYYGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.XXMinusYYGate.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.XXMinusYYGate **Circuit Symbol:** - ```python + ```text ┌───────────────┐ q_0: ┤0 ├ │ (XX-YY)(θ,β) │ @@ -43,7 +43,7 @@ $$ In Qiskit’s convention, higher qubit indices are more significant (little endian convention). In the above example we apply the gate on (q\_0, q\_1) which results in adding the (optional) phase defined by $\beta$ on q\_1. Instead, if we apply it on (q\_1, q\_0), the phase is added on q\_0. If $\beta$ is set to its default value of $0$, the gate is equivalent in big and little endian. - ```python + ```text ┌───────────────┐ q_0: ┤1 ├ │ (XX-YY)(θ,β) │ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.XXPlusYYGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.XXPlusYYGate.mdx index 9ac7604e3ad..3ad04098a22 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.XXPlusYYGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.XXPlusYYGate.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.circuit.library.XXPlusYYGate **Circuit Symbol:** - ```python + ```text ┌───────────────┐ q_0: ┤0 ├ │ (XX+YY)(θ,β) │ @@ -43,7 +43,7 @@ $$ In Qiskit’s convention, higher qubit indices are more significant (little endian convention). In the above example we apply the gate on (q\_0, q\_1) which results in adding the (optional) phase defined by $\beta$ on q\_0. Instead, if we apply it on (q\_1, q\_0), the phase is added on q\_1. If $\beta$ is set to its default value of $0$, the gate is equivalent in big and little endian. - ```python + ```text ┌───────────────┐ q_0: ┤1 ├ │ (XX+YY)(θ,β) │ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.YGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.YGate.mdx index 1767b8776f8..032ee81b556 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.YGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.YGate.mdx @@ -26,7 +26,7 @@ $$ **Circuit symbol:** - ```python + ```text ┌───┐ q_0: ┤ Y ├ └───┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.ZFeatureMap.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.ZFeatureMap.mdx index 31a633e1a1d..6bfd7425849 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.ZFeatureMap.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.ZFeatureMap.mdx @@ -15,7 +15,7 @@ python_api_name: qiskit.circuit.library.ZFeatureMap On 3 qubits and with 2 repetitions the circuit is represented by: - ```python + ```text ┌───┐┌─────────────┐┌───┐┌─────────────┐ ┤ H ├┤ P(2.0*x[0]) ├┤ H ├┤ P(2.0*x[0]) ├ ├───┤├─────────────┤├───┤├─────────────┤ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.ZGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.ZGate.mdx index 04355f9ccb5..c9d471a59a0 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.ZGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.ZGate.mdx @@ -26,7 +26,7 @@ $$ **Circuit symbol:** - ```python + ```text ┌───┐ q_0: ┤ Z ├ └───┘ diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.ZZFeatureMap.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.ZZFeatureMap.mdx index 0041e5c9dd3..2ba0f0890ae 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.ZZFeatureMap.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.ZZFeatureMap.mdx @@ -15,7 +15,7 @@ python_api_name: qiskit.circuit.library.ZZFeatureMap For 3 qubits and 1 repetition and linear entanglement the circuit is represented by: - ```python + ```text ┌───┐┌────────────────┐ ┤ H ├┤ P(2.0*φ(x[0])) ├──■───────────────────────────■─────────────────────────────────── ├───┤├────────────────┤┌─┴─┐┌─────────────────────┐┌─┴─┐ @@ -35,7 +35,7 @@ python_api_name: qiskit.circuit.library.ZZFeatureMap print(prep.decompose()) ``` - ```python + ```text ┌───┐┌─────────────┐ q_0: ┤ H ├┤ P(2.0*x[0]) ├──■──────────────────────────────────────■── ├───┤├─────────────┤┌─┴─┐┌────────────────────────────────┐┌─┴─┐ @@ -49,7 +49,7 @@ python_api_name: qiskit.circuit.library.ZZFeatureMap classifier.num_parameters ``` - ```python + ```text 27 ``` @@ -57,7 +57,7 @@ python_api_name: qiskit.circuit.library.ZZFeatureMap classifier.parameters # 'x' for the data preparation, 'θ' for the SU2 parameters ``` - ```python + ```text ParameterView([ ParameterVectorElement(x[0]), ParameterVectorElement(x[1]), ParameterVectorElement(x[2]), ParameterVectorElement(θ[0]), @@ -80,7 +80,7 @@ python_api_name: qiskit.circuit.library.ZZFeatureMap classifier.count_ops() ``` - ```python + ```text OrderedDict([('ZZFeatureMap', 1), ('EfficientSU2', 1)]) ``` diff --git a/docs/api/qiskit/dev/qiskit.circuit.library.iSwapGate.mdx b/docs/api/qiskit/dev/qiskit.circuit.library.iSwapGate.mdx index e9e9ca6db30..0531206f96b 100644 --- a/docs/api/qiskit/dev/qiskit.circuit.library.iSwapGate.mdx +++ b/docs/api/qiskit/dev/qiskit.circuit.library.iSwapGate.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.circuit.library.iSwapGate **Circuit Symbol:** - ```python + ```text q_0: ─⨂─ │ q_1: ─⨂─ @@ -27,7 +27,7 @@ python_api_name: qiskit.circuit.library.iSwapGate **Reference Implementation:** - ```python + ```text ┌───┐┌───┐ ┌───┐ q_0: ┤ S ├┤ H ├──■──┤ X ├───── ├───┤└───┘┌─┴─┐└─┬─┘┌───┐ diff --git a/docs/api/qiskit/dev/qiskit.dagcircuit.DAGDependency.mdx b/docs/api/qiskit/dev/qiskit.dagcircuit.DAGDependency.mdx index 2be78a56e98..6e4b6a79279 100644 --- a/docs/api/qiskit/dev/qiskit.dagcircuit.DAGDependency.mdx +++ b/docs/api/qiskit/dev/qiskit.dagcircuit.DAGDependency.mdx @@ -21,7 +21,7 @@ python_api_name: qiskit.dagcircuit.DAGDependency Bell circuit with no measurement. - ```python + ```text ┌───┐ qr_0: ┤ H ├──■── └───┘┌─┴─┐ diff --git a/docs/api/qiskit/dev/qiskit.providers.fake_provider.Fake20QV1.mdx b/docs/api/qiskit/dev/qiskit.providers.fake_provider.Fake20QV1.mdx index c4536b71279..963d245632e 100644 --- a/docs/api/qiskit/dev/qiskit.providers.fake_provider.Fake20QV1.mdx +++ b/docs/api/qiskit/dev/qiskit.providers.fake_provider.Fake20QV1.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.providers.fake_provider.Fake20QV1 * coupling\_map: - > ```python + > ```text > 00 ↔ 01 ↔ 02 ↔ 03 ↔ 04 > ↕ ↕ > 05 ↔ 06 ↔ 07 ↔ 08 ↔ 09 diff --git a/docs/api/qiskit/dev/qiskit.providers.fake_provider.Fake27QPulseV1.mdx b/docs/api/qiskit/dev/qiskit.providers.fake_provider.Fake27QPulseV1.mdx index 079b87d5d7b..5909fbc1f57 100644 --- a/docs/api/qiskit/dev/qiskit.providers.fake_provider.Fake27QPulseV1.mdx +++ b/docs/api/qiskit/dev/qiskit.providers.fake_provider.Fake27QPulseV1.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.providers.fake_provider.Fake27QPulseV1 * coupling\_map: - > ```python + > ```text > 06 17 > ↕ ↕ > 00 ↔ 01 ↔ 04 ↔ 07 ↔ 10 ↔ 12 ↔ 15 ↔ 18 ↔ 20 ↔ 23 diff --git a/docs/api/qiskit/dev/qiskit.providers.fake_provider.Fake5QV1.mdx b/docs/api/qiskit/dev/qiskit.providers.fake_provider.Fake5QV1.mdx index 224f095a277..1d129c9305c 100644 --- a/docs/api/qiskit/dev/qiskit.providers.fake_provider.Fake5QV1.mdx +++ b/docs/api/qiskit/dev/qiskit.providers.fake_provider.Fake5QV1.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.providers.fake_provider.Fake5QV1 * coupling\_map: - > ```python + > ```text > 1 > / | > 0 - 2 - 3 diff --git a/docs/api/qiskit/dev/qiskit.providers.fake_provider.Fake7QPulseV1.mdx b/docs/api/qiskit/dev/qiskit.providers.fake_provider.Fake7QPulseV1.mdx index 65b97d9002f..d377ff7d1ed 100644 --- a/docs/api/qiskit/dev/qiskit.providers.fake_provider.Fake7QPulseV1.mdx +++ b/docs/api/qiskit/dev/qiskit.providers.fake_provider.Fake7QPulseV1.mdx @@ -17,7 +17,7 @@ python_api_name: qiskit.providers.fake_provider.Fake7QPulseV1 * coupling\_map: - > ```python + > ```text > 0 ↔ 1 ↔ 3 ↔ 5 ↔ 6 > ↕ ↕ > 2 4 diff --git a/docs/api/qiskit/dev/qiskit.pulse.ScheduleBlock.mdx b/docs/api/qiskit/dev/qiskit.pulse.ScheduleBlock.mdx index c39f50c23bf..ea40eb3ffe1 100644 --- a/docs/api/qiskit/dev/qiskit.pulse.ScheduleBlock.mdx +++ b/docs/api/qiskit/dev/qiskit.pulse.ScheduleBlock.mdx @@ -59,7 +59,7 @@ python_api_name: qiskit.pulse.ScheduleBlock print(sched_outer.parameters) ``` - ```python + ```text {Parameter(amp1), Parameter(amp2)} ``` @@ -69,7 +69,7 @@ python_api_name: qiskit.pulse.ScheduleBlock print(sched_outer.references) ``` - ```python + ```text ReferenceManager: - ('grand_child',): ScheduleBlock(Play(Constant(duration=100, amp=amp1,... ``` @@ -86,7 +86,7 @@ python_api_name: qiskit.pulse.ScheduleBlock print(main.parameters) ``` - ```python + ```text {Parameter(amp1), Parameter(amp2), Parameter(amp3} ``` @@ -98,7 +98,7 @@ python_api_name: qiskit.pulse.ScheduleBlock print(main.references) ``` - ```python + ```text ReferenceManager: - ('child',): ScheduleBlock(ScheduleBlock(ScheduleBlock(Play(Con... ``` diff --git a/docs/api/qiskit/dev/qiskit.quantum_info.CNOTDihedral.mdx b/docs/api/qiskit/dev/qiskit.quantum_info.CNOTDihedral.mdx index 56d2767533a..874c2f1d8b8 100644 --- a/docs/api/qiskit/dev/qiskit.quantum_info.CNOTDihedral.mdx +++ b/docs/api/qiskit/dev/qiskit.quantum_info.CNOTDihedral.mdx @@ -39,7 +39,7 @@ python_api_name: qiskit.quantum_info.CNOTDihedral > print(elem) > ``` - ```python + ```text phase polynomial = 0 + 3*x_0 + 3*x_1 + 2*x_0*x_1 affine function = diff --git a/docs/api/qiskit/dev/qiskit.quantum_info.Clifford.mdx b/docs/api/qiskit/dev/qiskit.quantum_info.Clifford.mdx index bd2d982d151..c25fb5563b3 100644 --- a/docs/api/qiskit/dev/qiskit.quantum_info.Clifford.mdx +++ b/docs/api/qiskit/dev/qiskit.quantum_info.Clifford.mdx @@ -52,7 +52,7 @@ python_api_name: qiskit.quantum_info.Clifford print(cliff.to_labels(mode="S")) ``` - ```python + ```text Clifford: Stabilizer = ['+XX', '+ZZ'], Destabilizer = ['+IZ', '+XI'] ['+IZ', '+XI'] ['+XX', '+ZZ'] diff --git a/docs/api/qiskit/dev/qiskit.quantum_info.DensityMatrix.mdx b/docs/api/qiskit/dev/qiskit.quantum_info.DensityMatrix.mdx index 16d30fa103e..357729bbf86 100644 --- a/docs/api/qiskit/dev/qiskit.quantum_info.DensityMatrix.mdx +++ b/docs/api/qiskit/dev/qiskit.quantum_info.DensityMatrix.mdx @@ -351,7 +351,7 @@ python_api_name: qiskit.quantum_info.DensityMatrix print('Qubit-1 probs: {}'.format(probs_qubit_1)) ``` - ```python + ```text probs: [0.5 0. 0.5 0. ] Qubit-0 probs: [1. 0.] Qubit-1 probs: [0.5 0.5] @@ -374,7 +374,7 @@ python_api_name: qiskit.quantum_info.DensityMatrix print('Swapped probs: {}'.format(probs_swapped)) ``` - ```python + ```text probs: [0.5 0. 0.5 0. ] Swapped probs: [0.5 0.5 0. 0. ] ``` @@ -555,7 +555,7 @@ python_api_name: qiskit.quantum_info.DensityMatrix print(rho.to_dict()) ``` - ```python + ```text { '00|00': (0.4999999999999999+0j), '10|00': (-0.4999999999999999-0j), @@ -579,7 +579,7 @@ python_api_name: qiskit.quantum_info.DensityMatrix print(rho.to_dict()) ``` - ```python + ```text {'00|00': (0.25+0j), '10|10': (0.25+0j), '20|20': (0.25+0j), '22|22': (0.25+0j)} ``` @@ -596,7 +596,7 @@ python_api_name: qiskit.quantum_info.DensityMatrix print(rho.to_dict()) ``` - ```python + ```text {'00|00': (0.5+0j), '91|91': (0.5+0j)} ``` diff --git a/docs/api/qiskit/dev/qiskit.quantum_info.PauliList.mdx b/docs/api/qiskit/dev/qiskit.quantum_info.PauliList.mdx index 4bd29238620..12c0a13c269 100644 --- a/docs/api/qiskit/dev/qiskit.quantum_info.PauliList.mdx +++ b/docs/api/qiskit/dev/qiskit.quantum_info.PauliList.mdx @@ -59,7 +59,7 @@ python_api_name: qiskit.quantum_info.PauliList print("4. ", pauli_list) ``` - ```python + ```text 1. ['II', 'ZI', '-iYY'] 2. ['iXI'] 3. ['iXI', 'iZZ'] @@ -77,7 +77,7 @@ python_api_name: qiskit.quantum_info.PauliList print("Slice: ", repr(pauli_list[0:2])) ``` - ```python + ```text Integer: Pauli('ZZ') List: PauliList(['XX', 'IZ']) Slice: PauliList(['XX', 'ZZ']) @@ -668,7 +668,7 @@ python_api_name: qiskit.quantum_info.PauliList print(srt) ``` - ```python + ```text Initial Ordering ['YX', 'ZZ', 'XZ', 'YI', 'YZ', 'II', 'XX', 'XI', 'XY', 'YY', 'IX', 'IZ', 'ZY', 'ZI', 'ZX', 'IY'] @@ -792,7 +792,7 @@ python_api_name: qiskit.quantum_info.PauliList print(unique) ``` - ```python + ```text ['X', 'Y', '-X', 'I', 'Z', 'iZ'] ``` diff --git a/docs/api/qiskit/dev/qiskit.quantum_info.SparsePauliOp.mdx b/docs/api/qiskit/dev/qiskit.quantum_info.SparsePauliOp.mdx index 09f866b8c20..68961aa6db9 100644 --- a/docs/api/qiskit/dev/qiskit.quantum_info.SparsePauliOp.mdx +++ b/docs/api/qiskit/dev/qiskit.quantum_info.SparsePauliOp.mdx @@ -191,7 +191,7 @@ python_api_name: qiskit.quantum_info.SparsePauliOp print(srt) ``` - ```python + ```text Initial Ordering SparsePauliOp(['XX', 'XX', 'XX', 'YI', 'II', 'XZ', 'XY', 'XI'], coeffs=[2.+1.j, 2.+2.j, 3.+0.j, 3.+0.j, 4.+0.j, 5.+0.j, 6.+0.j, 7.+0.j]) @@ -707,7 +707,7 @@ $$ print(srt) ``` - ```python + ```text Initial Ordering SparsePauliOp(['XX', 'XX', 'XX', 'YI', 'II', 'XZ', 'XY', 'XI'], coeffs=[2.+1.j, 2.+2.j, 3.+0.j, 3.+0.j, 4.+0.j, 5.+0.j, 6.+0.j, 7.+0.j]) diff --git a/docs/api/qiskit/dev/qiskit.quantum_info.StabilizerState.mdx b/docs/api/qiskit/dev/qiskit.quantum_info.StabilizerState.mdx index cc96c7b3e6c..70c8b68c350 100644 --- a/docs/api/qiskit/dev/qiskit.quantum_info.StabilizerState.mdx +++ b/docs/api/qiskit/dev/qiskit.quantum_info.StabilizerState.mdx @@ -33,7 +33,7 @@ python_api_name: qiskit.quantum_info.StabilizerState print (stab.expectation_value(Pauli('ZZ'))) ``` - ```python + ```text StabilizerState(StabilizerTable: ['+XX', '+ZZ']) {'00': 0.5, '11': 0.5} 1 diff --git a/docs/api/qiskit/dev/qiskit.quantum_info.Statevector.mdx b/docs/api/qiskit/dev/qiskit.quantum_info.Statevector.mdx index 56b76e140cb..bafc4d54407 100644 --- a/docs/api/qiskit/dev/qiskit.quantum_info.Statevector.mdx +++ b/docs/api/qiskit/dev/qiskit.quantum_info.Statevector.mdx @@ -404,7 +404,7 @@ python_api_name: qiskit.quantum_info.Statevector print('Qubit-1 probs: {}'.format(probs_qubit_1)) ``` - ```python + ```text probs: [0.5 0. 0.5 0. ] Qubit-0 probs: [1. 0.] Qubit-1 probs: [0.5 0.5] @@ -427,7 +427,7 @@ python_api_name: qiskit.quantum_info.Statevector print('Swapped probs: {}'.format(probs_swapped)) ``` - ```python + ```text probs: [0.5 0. 0.5 0. ] Swapped probs: [0.5 0.5 0. 0. ] ``` @@ -612,7 +612,7 @@ python_api_name: qiskit.quantum_info.Statevector print(psi.to_dict()) ``` - ```python + ```text {'00': (0.7071067811865475+0j), '10': (-0.7071067811865475+0j)} ``` @@ -629,7 +629,7 @@ python_api_name: qiskit.quantum_info.Statevector print(psi.to_dict()) ``` - ```python + ```text {'00': (0.7071067811865475+0j), '22': (0.7071067811865475+0j)} ``` @@ -646,7 +646,7 @@ python_api_name: qiskit.quantum_info.Statevector print(psi.to_dict()) ``` - ```python + ```text {'00': (0.7071067811865475+0j), '91': (0.7071067811865475+0j)} ``` diff --git a/docs/api/qiskit/dev/qiskit.transpiler.passes.AlignMeasures.mdx b/docs/api/qiskit/dev/qiskit.transpiler.passes.AlignMeasures.mdx index 9c770a1ada6..b938b80bdce 100644 --- a/docs/api/qiskit/dev/qiskit.transpiler.passes.AlignMeasures.mdx +++ b/docs/api/qiskit/dev/qiskit.transpiler.passes.AlignMeasures.mdx @@ -27,7 +27,7 @@ python_api_name: qiskit.transpiler.passes.AlignMeasures We assume executing the following circuit on a backend with `alignment=16`. - ```python + ```text ┌───┐┌────────────────┐┌─┐ q_0: ┤ X ├┤ Delay(100[dt]) ├┤M├ └───┘└────────────────┘└╥┘ @@ -37,7 +37,7 @@ python_api_name: qiskit.transpiler.passes.AlignMeasures Note that delay of 100 dt induces a misalignment of 4 dt at the measurement. This pass appends an extra 12 dt time shift to the input circuit. - ```python + ```text ┌───┐┌────────────────┐┌─┐ q_0: ┤ X ├┤ Delay(112[dt]) ├┤M├ └───┘└────────────────┘└╥┘ diff --git a/docs/api/qiskit/dev/qiskit.transpiler.passes.Commuting2qGateRouter.mdx b/docs/api/qiskit/dev/qiskit.transpiler.passes.Commuting2qGateRouter.mdx index f3e6ac566db..dab23bdefd7 100644 --- a/docs/api/qiskit/dev/qiskit.transpiler.passes.Commuting2qGateRouter.mdx +++ b/docs/api/qiskit/dev/qiskit.transpiler.passes.Commuting2qGateRouter.mdx @@ -15,7 +15,7 @@ python_api_name: qiskit.transpiler.passes.Commuting2qGateRouter This pass routes blocks of commuting two-qubit gates encapsulated as `Commuting2qBlock` instructions. This pass will not apply to other instructions. The mapping to the coupling map is done using swap strategies, see `SwapStrategy`. The swap strategy should suit the problem and the coupling map. This transpiler pass should ideally be executed before the quantum circuit is enlarged with any idle ancilla qubits. Otherwise, we may swap qubits outside the portion of the chip we want to use. Therefore, the swap strategy and its associated coupling map do not represent physical qubits. Instead, they represent an intermediate mapping that corresponds to the physical qubits once the initial layout is applied. The example below shows how to map a four qubit [`PauliEvolutionGate`](qiskit.circuit.library.PauliEvolutionGate "qiskit.circuit.library.PauliEvolutionGate") to qubits 0, 1, 3, and 4 of the five qubit device with the coupling map - ```python + ```text 0 -- 1 -- 2 | 3 diff --git a/docs/api/qiskit/dev/qiskit.transpiler.passes.ConstrainedReschedule.mdx b/docs/api/qiskit/dev/qiskit.transpiler.passes.ConstrainedReschedule.mdx index 8555b0976da..1d1a8e5b357 100644 --- a/docs/api/qiskit/dev/qiskit.transpiler.passes.ConstrainedReschedule.mdx +++ b/docs/api/qiskit/dev/qiskit.transpiler.passes.ConstrainedReschedule.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.transpiler.passes.ConstrainedReschedule We assume executing the following circuit on a backend with 16 dt of acquire alignment. - ```python + ```text ┌───┐┌────────────────┐┌─┐ q_0: ┤ X ├┤ Delay(100[dt]) ├┤M├ └───┘└────────────────┘└╥┘ @@ -29,7 +29,7 @@ python_api_name: qiskit.transpiler.passes.ConstrainedReschedule Note that delay of 100 dt induces a misalignment of 4 dt at the measurement. This pass appends an extra 12 dt time shift to the input circuit. - ```python + ```text ┌───┐┌────────────────┐┌─┐ q_0: ┤ X ├┤ Delay(112[dt]) ├┤M├ └───┘└────────────────┘└╥┘ diff --git a/docs/api/qiskit/dev/qiskit.transpiler.passes.MergeAdjacentBarriers.mdx b/docs/api/qiskit/dev/qiskit.transpiler.passes.MergeAdjacentBarriers.mdx index 42f52246ed8..cc600d30749 100644 --- a/docs/api/qiskit/dev/qiskit.transpiler.passes.MergeAdjacentBarriers.mdx +++ b/docs/api/qiskit/dev/qiskit.transpiler.passes.MergeAdjacentBarriers.mdx @@ -36,7 +36,7 @@ python_api_name: qiskit.transpiler.passes.MergeAdjacentBarriers i.e, - ```python + ```text ░ ░ ░ ░ q_0: ─░──░─ q_0: ─░──░─ ░ ░ ░ ░ diff --git a/docs/api/qiskit/dev/qiskit.transpiler.passes.PadDelay.mdx b/docs/api/qiskit/dev/qiskit.transpiler.passes.PadDelay.mdx index 119406836f5..fc26a1fa459 100644 --- a/docs/api/qiskit/dev/qiskit.transpiler.passes.PadDelay.mdx +++ b/docs/api/qiskit/dev/qiskit.transpiler.passes.PadDelay.mdx @@ -29,7 +29,7 @@ python_api_name: qiskit.transpiler.passes.PadDelay The ASAP-scheduled circuit output may become - ```python + ```text ┌────────────────┐ q_0: ┤ Delay(160[dt]) ├──■── └─────┬───┬──────┘┌─┴─┐ diff --git a/docs/api/qiskit/dev/qiskit.transpiler.passes.SolovayKitaev.mdx b/docs/api/qiskit/dev/qiskit.transpiler.passes.SolovayKitaev.mdx index 5fdbbeef967..979295e3027 100644 --- a/docs/api/qiskit/dev/qiskit.transpiler.passes.SolovayKitaev.mdx +++ b/docs/api/qiskit/dev/qiskit.transpiler.passes.SolovayKitaev.mdx @@ -19,7 +19,7 @@ python_api_name: qiskit.transpiler.passes.SolovayKitaev For example, the following circuit - ```python + ```text ┌─────────┐ q_0: ┤ RX(0.8) ├ └─────────┘ @@ -27,7 +27,7 @@ python_api_name: qiskit.transpiler.passes.SolovayKitaev can be decomposed into - ```python + ```text global phase: 7π/8 ┌───┐┌───┐┌───┐ q_0: ┤ H ├┤ T ├┤ H ├ @@ -62,7 +62,7 @@ python_api_name: qiskit.transpiler.passes.SolovayKitaev print("Error:", np.linalg.norm(Operator(circuit).data - Operator(discretized).data)) ``` - ```python + ```text Original circuit: ┌─────────┐ q: ┤ Rx(0.8) ├ diff --git a/docs/api/qiskit/dev/qpy.mdx b/docs/api/qiskit/dev/qpy.mdx index f30c6597c52..d4d8d5754ab 100644 --- a/docs/api/qiskit/dev/qpy.mdx +++ b/docs/api/qiskit/dev/qpy.mdx @@ -287,7 +287,7 @@ The QPY serialization format is a portable cross-platform binary serialization f A QPY file (or memory object) always starts with the following 6 byte UTF8 string: `QISKIT` which is immediately followed by the overall file header. The contents of the file header as defined as a C struct are: -```python +```c struct { uint8_t qpy_version; uint8_t qiskit_major_version; @@ -299,7 +299,7 @@ struct { From V10 on, a new field is added to the file header struct to represent the encoding scheme used for symbolic expressions: -```python +```c struct { uint8_t qpy_version; uint8_t qiskit_major_version; @@ -332,7 +332,7 @@ Version 12 adds support for: The HEADER struct for an individual circuit has added three `uint32_t` counts of the input, captured and locally declared variables in the circuit. The new form looks like: -```python +```c struct { uint16_t name_size; char global_phase_type; @@ -354,7 +354,7 @@ The `HEADER_V12` struct is followed immediately by the same name, global-phase, An `EXPR_VAR_DECLARATION` defines an [`expr.Var`](circuit_classical#qiskit.circuit.classical.expr.Var "qiskit.circuit.classical.expr.Var") instance that is standalone; that is, it represents a self-owned memory location rather than wrapping a [`Clbit`](circuit#qiskit.circuit.Clbit "qiskit.circuit.Clbit") or [`ClassicalRegister`](circuit#qiskit.circuit.ClassicalRegister "qiskit.circuit.ClassicalRegister"). The payload is a C struct: -```python +```c struct { char uuid_bytes[16]; char usage; @@ -404,7 +404,7 @@ Version 11 is identical to Version 10 except for the following. First, the names This represents `Modifier` -```python +```c struct { char type; uint32_t num_ctrl_qubits; @@ -432,7 +432,7 @@ The symbolic\_encoding field is added to the file header, and a new encoding typ The contents of FILE\_HEADER after V10 are defined as a C struct as: -```python +```c struct { uint8_t qpy_version; uint8_t qiskit_major_version; @@ -447,7 +447,7 @@ struct { The `LAYOUT` struct is updated to have an additional `input_qubit_count` field. With version 10 the `LAYOUT` struct is now: -```python +```c struct { char exists; int32_t initial_layout_size; @@ -522,7 +522,7 @@ This represents a literal object in the classical type system, such as an intege To support the use of [`Expr`](circuit_classical#qiskit.circuit.classical.expr.Expr "qiskit.circuit.classical.expr.Expr") nodes in the fields [`IfElseOp.condition`](qiskit.circuit.IfElseOp#condition "qiskit.circuit.IfElseOp.condition"), [`WhileLoopOp.condition`](qiskit.circuit.WhileLoopOp#condition "qiskit.circuit.WhileLoopOp.condition") and `SwitchCaseOp.target`, the INSTRUCTION struct is changed in an ABI compatible-manner to [its previous definition](#qpy-instruction-v5). The new struct is the C struct: -```python +```c struct { uint16_t name_size; uint16_t label_size; @@ -559,7 +559,7 @@ Version 8 adds support for handling a [`TranspileLayout`](qiskit.transpiler.Tran #### LAYOUT -```python +```c struct { char exists; int32_t initial_layout_size; @@ -577,7 +577,7 @@ Immediately following the `LAYOUT` struct there is a [REGISTERS](#qpy-registers) #### INITIAL\_LAYOUT\_BIT -```python +```c struct { int32_t index; int32_t register_size; @@ -631,7 +631,7 @@ Version 6 adds support for `ScalableSymbolicPulse`. These objects are saved and SymbolicPulse block now starts with SYMBOLIC\_PULSE\_V2 header: -```python +```c struct { uint16_t class_name_size; uint16_t type_size; @@ -654,7 +654,7 @@ With the support of `ScheduleBlock`, now [`QuantumCircuit`](qiskit.circuit.Quant In QPY version 5 and above, -```python +```c struct { char type; } @@ -700,7 +700,7 @@ Note that circuit and schedule block are serialized and deserialized through the [`ScheduleBlock`](qiskit.pulse.ScheduleBlock "qiskit.pulse.ScheduleBlock") block starts with the following header: -```python +```c struct { uint16_t name_size; uint64_t metadata_size; @@ -778,7 +778,7 @@ The key is immediately followed by the channel index serialized as the INSTRUCTI Waveform block starts with WAVEFORM header: -```python +```c struct { double epsilon; uint32_t data_size; @@ -794,7 +794,7 @@ which is followed by `data_size` bytes of complex `ndarray` binary generated by SymbolicPulse block starts with SYMBOLIC\_PULSE header: -```python +```c struct { uint16_t type_size; uint16_t envelope_size; @@ -816,7 +816,7 @@ The MAPPING is a representation for arbitrary mapping object. This is a fixed le A MAP\_ITEM starts with a header defined as: -```python +```c struct { uint16_t key_size; char type; @@ -834,7 +834,7 @@ which is immediately followed by the `key_size` utf8 bytes representing the dict The CIRCUIT\_CALIBRATIONS block is a dictionary to define pulse calibrations of the custom instruction set. This block starts with the following CALIBRATION header: -```python +```c struct { uint16_t num_cals; } @@ -842,7 +842,7 @@ struct { which is followed by the `num_cals` length of calibration entries, each starts with the CALIBRATION\_DEF header: -```python +```c struct { uint16_t name_size; uint16_t num_qubits; @@ -859,7 +859,7 @@ The calibration definition header is then followed by `name_size` utf8 bytes of The INSTRUCTION block was modified to add two new fields `num_ctrl_qubits` and `ctrl_state` which are used to model the [`ControlledGate.num_ctrl_qubits`](qiskit.circuit.ControlledGate#num_ctrl_qubits "qiskit.circuit.ControlledGate.num_ctrl_qubits") and [`ControlledGate.ctrl_state`](qiskit.circuit.ControlledGate#ctrl_state "qiskit.circuit.ControlledGate.ctrl_state") attributes. The new payload packed struct format is: -```python +```c struct { uint16_t name_size; uint16_t label_size; @@ -882,7 +882,7 @@ The rest of the instruction payload is the same. You can refer to [INSTRUCTIONS] The CUSTOM\_INSTRUCTION block in QPY version 5 adds a new field `base_gate_size` which is used to define the size of the [`qiskit.circuit.Instruction`](qiskit.circuit.Instruction "qiskit.circuit.Instruction") object stored in the `ControlledGate.base_gate` attribute for a custom [`ControlledGate`](qiskit.circuit.ControlledGate "qiskit.circuit.ControlledGate") object. With this change the CUSTOM\_INSTRUCTION metadata block becomes: -```python +```c struct { uint16_t name_size; char type; @@ -912,7 +912,7 @@ Version 4 is identical to [Version 3](#qpy-version-3) except that it adds 2 new The [REGISTERS](#qpy-registers) header format has also been updated to -```python +```c struct { char type; _Bool standalone; @@ -930,7 +930,7 @@ which just adds the `in_circuit` field which represents whether the register is A RANGE is a representation of a `range` object. It is defined as: -```python +```c struct { int64_t start; int64_t stop; @@ -946,7 +946,7 @@ A SEQUENCE is a representation of an arbitrary sequence object. As sequence are A sequence instruction parameter starts with a header defined as: -```python +```c struct { uint64_t size; } @@ -968,7 +968,7 @@ Version 3 of the QPY format is identical to [Version 2](#qpy-version-2) except t This represents the high level [`PauliEvolutionGate`](qiskit.circuit.library.PauliEvolutionGate "qiskit.circuit.library.PauliEvolutionGate") -```python +```c struct { uint64_t operator_count; _Bool standalone_op; @@ -988,7 +988,7 @@ This is immediately followed by `operator_count` elements defined by the [SPARSE This represents an instance of [`SparsePauliOp`](qiskit.quantum_info.SparsePauliOp "qiskit.quantum_info.SparsePauliOp"). -```python +```c struct { uint32_t pauli_op_size; } @@ -1006,7 +1006,7 @@ Version 3 of the QPY format also defines a struct format to represent a `Paramet A PARAMETER\_VECTOR\_ELEMENT represents a `ParameterVectorElement` object the data for a INSTRUCTION\_PARAM. The contents of the PARAMETER\_VECTOR\_ELEMENT are defined as: -```python +```c struct { uint16_t vector_name_size; uint64_t vector_size; @@ -1027,7 +1027,7 @@ Additionally, since QPY format version v3 distinguishes between a [`Parameter`]( A PARAMETER\_EXPR represents a [`ParameterExpression`](qiskit.circuit.ParameterExpression "qiskit.circuit.ParameterExpression") object that the data for an INSTRUCTION\_PARAM. The contents of a PARAMETER\_EXPR are defined as: -```python +```c struct { uint64_t map_elements; uint64_t expr_size; @@ -1036,7 +1036,7 @@ struct { Immediately following the header is `expr_size` bytes of utf8 data containing the expression string, which is the sympy srepr of the expression for the parameter expression. Following that is a symbol map which contains `map_elements` elements with the format -```python +```c struct { char symbol_type; char type; @@ -1056,7 +1056,7 @@ Version 2 of the QPY format is identical to version 1 except for the HEADER sect The contents of HEADER are defined as a C struct are: -```python +```c struct { uint16_t name_size; char global_phase_type; @@ -1081,7 +1081,7 @@ This is immediately followed by `name_size` bytes of utf8 data for the name of t The contents of HEADER as defined as a C struct are: -```python +```c struct { uint16_t name_size; double global_phase; @@ -1105,7 +1105,7 @@ The METADATA field is a UTF8 encoded JSON string. After reading the HEADER (whic The contents of REGISTERS is a number of REGISTER object. If num\_registers is > 0 then after reading METADATA you read that number of REGISTER structs defined as: -```python +```c struct { char type; _Bool standalone; @@ -1149,7 +1149,7 @@ This section specifies custom definitions for any of the instructions in the cir CUSTOM\_DEFINITION\_HEADER contents are defined as: -```python +```c struct { uint64_t size; } @@ -1157,7 +1157,7 @@ struct { If size is greater than 0 that means the circuit contains custom instruction(s). Each custom instruction is defined with a CUSTOM\_INSTRUCTION block defined as: -```python +```c struct { uint16_t name_size; char type; @@ -1178,7 +1178,7 @@ If `custom_definition` is `True` that means that the immediately following `size The contents of INSTRUCTIONS is a list of INSTRUCTION metadata objects -```python +```c struct { uint16_t name_size; uint16_t label_size; @@ -1197,7 +1197,7 @@ This is immediately followed by the INSTRUCTION\_ARG structs for the list of arg The contents of each INSTRUCTION\_ARG is: -```python +```c struct { char type; uint32_t index; @@ -1210,7 +1210,7 @@ After all arguments for an instruction the parameters are specified with `num_pa The contents of each INSTRUCTION\_PARAM is: -```python +```c struct { char type; uint64_t size; @@ -1225,7 +1225,7 @@ After each INSTRUCTION\_PARAM the next `size` bytes are the parameter’s data. A PARAMETER represents a [`Parameter`](qiskit.circuit.Parameter "qiskit.circuit.Parameter") object the data for a INSTRUCTION\_PARAM. The contents of the PARAMETER are defined as: -```python +```c struct { uint16_t name_size; char uuid[16]; @@ -1244,7 +1244,7 @@ A PARAMETER\_EXPR represents a [`ParameterExpression`](qiskit.circuit.ParameterE The PARAMETER\_EXPR data starts with a header: -```python +```c struct { uint64_t map_elements; uint64_t expr_size; @@ -1253,7 +1253,7 @@ struct { Immediately following the header is `expr_size` bytes of utf8 data containing the expression string, which is the sympy srepr of the expression for the parameter expression. Follwing that is a symbol map which contains `map_elements` elements with the format -```python +```c struct { char type; uint64_t size; @@ -1268,7 +1268,7 @@ Which is followed immediately by `PARAMETER` object (both the struct and utf8 na When representing a double precision complex value in QPY the following struct is used: -```python +```c struct { double real; double imag; diff --git a/docs/api/qiskit/dev/synthesis.mdx b/docs/api/qiskit/dev/synthesis.mdx index d8e2c7ca3b4..3a056db097a 100644 --- a/docs/api/qiskit/dev/synthesis.mdx +++ b/docs/api/qiskit/dev/synthesis.mdx @@ -400,7 +400,7 @@ python_api_name: qiskit.synthesis For example, a 5-qubit Clifford circuit is decomposed into the following layers: - ```python + ```text ┌─────┐┌─────┐┌────────┐┌─────┐┌─────┐┌─────┐┌─────┐┌────────┐ q_0: ┤0 ├┤0 ├┤0 ├┤0 ├┤0 ├┤0 ├┤0 ├┤0 ├ │ ││ ││ ││ ││ ││ ││ ││ │ @@ -556,7 +556,7 @@ python_api_name: qiskit.synthesis For example, a 5-qubit stabilizer state is decomposed into the following layers: - ```python + ```text ┌─────┐┌─────┐┌─────┐┌─────┐┌────────┐ q_0: ┤0 ├┤0 ├┤0 ├┤0 ├┤0 ├ │ ││ ││ ││ ││ │ @@ -747,7 +747,7 @@ Decomposition of general $2^n \times 2^n$ unitary matrices for any number of qub This decomposition is described in Shende et al. \[1]. - ```python + ```text ┌───┐ ┌───┐ ┌───┐ ┌───┐ ─┤ ├─ ───────┤ Rz├─────┤ Ry├─────┤ Rz├───── │ │ ≃ ┌───┐└─┬─┘┌───┐└─┬─┘┌───┐└─┬─┘┌───┐ diff --git a/docs/api/qiskit/dev/transpiler.mdx b/docs/api/qiskit/dev/transpiler.mdx index 5f1ff36f82a..95d3946df86 100644 --- a/docs/api/qiskit/dev/transpiler.mdx +++ b/docs/api/qiskit/dev/transpiler.mdx @@ -190,7 +190,7 @@ target.add_instruction( print(target) ``` -```python +```text Target Number of qubits: 3 Instructions: @@ -484,7 +484,7 @@ A few things to highlight. First, the circuit has gotten longer with respect to print('Original depth:', qc.depth(), 'Decomposed Depth:', qc_basis.depth()) ``` -```python +```text Original depth: 4 Decomposed Depth: 10 ``` @@ -501,7 +501,7 @@ It is important to highlight two special cases: print(backend.operation_names) ``` - ```python + ```text ['id', 'rz', 'sx', 'x', 'cx', 'measure', 'delay'] ``` @@ -762,7 +762,7 @@ When running scheduling analysis passes on a circuit, you must keep in mind that The DAG representation of `QuantumCircuit` respects the node ordering in the classical register wires, though theoretically two conditional instructions conditioned on the same register could commute, i.e. read-access to the classical register doesn’t change its state. -```python +```text qc = QuantumCircuit(2, 1) qc.delay(100, 0) qc.x(0).c_if(0, True) @@ -771,7 +771,7 @@ qc.x(1).c_if(0, True) The scheduler SHOULD comply with the above topological ordering policy of the DAG circuit. Accordingly, the asap-scheduled circuit will become -```python +```text ┌────────────────┐ ┌───┐ q_0: ┤ Delay(100[dt]) ├───┤ X ├────────────── ├────────────────┤ └─╥─┘ ┌───┐ @@ -788,7 +788,7 @@ Note that this scheduling might be inefficient in some cases, because the second In the dispersive QND readout scheme, the qubit (Q) is measured by sending a microwave stimulus, followed by a resonator ring-down (depopulation). This microwave signal is recorded in the buffer memory (B) with the hardware kernel, then a discriminated (D) binary value is moved to the classical register (C). A sequence from t0 to t1 of the measure instruction interval could be modeled as follows: -```python +```text Q ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░ B ░░▒▒▒▒▒▒▒▒░░░░░░░░░ D ░░░░░░░░░░▒▒▒▒▒▒░░░ @@ -799,7 +799,7 @@ However, the [`QuantumCircuit`](qiskit.circuit.QuantumCircuit "qiskit.circuit.Qu The lack of precision representing the physical model may induce edge cases in the scheduling: -```python +```text ┌───┐ q_0: ───┤ X ├────── └─╥─┘ ┌─┐ @@ -811,7 +811,7 @@ c: 1/╡ c_0=0x1 ╞═╩═ In this example, a user may intend to measure the state of `q_1` after the [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.library.XGate") is applied to `q_0`. This is the correct interpretation from the viewpoint of topological node ordering, i.e. The [`XGate`](qiskit.circuit.library.XGate "qiskit.circuit.library.XGate") node comes in front of the [`Measure`](circuit#qiskit.circuit.Measure "qiskit.circuit.Measure") node. However, according to the measurement model above, the data in the register is unchanged during the application of the stimulus, so two nodes are simultaneously operated. If one tries to alap-schedule this circuit, it may return following circuit: -```python +```text ┌────────────────┐ ┌───┐ q_0: ┤ Delay(500[dt]) ├───┤ X ├────── └────────────────┘ └─╥─┘ ┌─┐ @@ -823,7 +823,7 @@ c: 1/══════════════════╡ c_0=0x1 ╞═╩ Note that there is no delay on the `q_1` wire, and the measure instruction immediately starts after t=0, while the conditional gate starts after the delay. It looks like the topological ordering between the nodes is flipped in the scheduled view. This behavior can be understood by considering the control flow model described above, -```python +```text : Quantum Circuit, first-measure 0 ░░░░░░░░░░░░▒▒▒▒▒▒░ 1 ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░ @@ -845,7 +845,7 @@ This behavior can be controlled by `clbit_write_latency` and `conditional_latenc Due to default latencies, the alap-scheduled circuit of above example may become -```python +```text ┌───┐ q_0: ───┤ X ├────── └─╥─┘ ┌─┐ @@ -857,7 +857,7 @@ c: 1/╡ c_0=0x1 ╞═╩═ If the backend microarchitecture supports smart scheduling of the control flow instructions, such as separately scheduling qubits and classical registers, the insertion of the delay yields an unnecessarily longer total execution time. -```python +```text : Quantum Circuit, first-XGate 0 ░▒▒▒░░░░░░░░░░░░░░░ 1 ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░ @@ -873,7 +873,7 @@ C ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░ (zero latency, sched However, this result is much more intuitive in the topological ordering view. If a finite conditional latency value is provided, for example, 30 dt, the circuit is scheduled as follows: -```python +```text ┌───────────────┐ ┌───┐ q_0: ┤ Delay(30[dt]) ├───┤ X ├────── ├───────────────┤ └─╥─┘ ┌─┐ @@ -885,7 +885,7 @@ c: 1/═════════════════╡ c_0=0x1 ╞═╩═ with the timing model: -```python +```text : Quantum Circuit, first-xgate 0 ░░▒▒▒░░░░░░░░░░░░░░░ 1 ░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░ diff --git a/docs/api/qiskit/dev/transpiler_plugins.mdx b/docs/api/qiskit/dev/transpiler_plugins.mdx index 1bc3a544314..0713637aa36 100644 --- a/docs/api/qiskit/dev/transpiler_plugins.mdx +++ b/docs/api/qiskit/dev/transpiler_plugins.mdx @@ -129,7 +129,7 @@ There isn’t a limit to the number of plugins a single package can include as l help(basic_plugin) ``` - ```python + ```text Help on BasicSwapPassManager in module ...preset_passmanagers.builtin_plugins object: class BasicSwapPassManager(...preset_passmanagers.plugin.PassManagerStagePlugin) diff --git a/docs/api/qiskit/dev/transpiler_synthesis_plugins.mdx b/docs/api/qiskit/dev/transpiler_synthesis_plugins.mdx index 8d4001bccf5..ea475654339 100644 --- a/docs/api/qiskit/dev/transpiler_synthesis_plugins.mdx +++ b/docs/api/qiskit/dev/transpiler_synthesis_plugins.mdx @@ -110,7 +110,7 @@ If for some reason the available inputs to the [`run()`](qiskit.transpiler.passe The second step is to expose the [`UnitarySynthesisPlugin`](qiskit.transpiler.passes.synthesis.plugin.UnitarySynthesisPlugin "qiskit.transpiler.passes.synthesis.plugin.UnitarySynthesisPlugin") as a setuptools entry point in the package metadata. This is done by simply adding an `entry-points` table in `pyproject.toml` for the plugin package with the necessary entry points under the `qiskit.unitary_synthesis` namespace. For example: -```python +```toml [project.entry-points."qiskit.unitary_synthesis"] "special" = "qiskit_plugin_pkg.module.plugin:SpecialUnitarySynthesis" ``` @@ -143,7 +143,7 @@ The above example creates a plugin to synthesize objects of type [`Clifford`](qi The second step is to expose the [`HighLevelSynthesisPlugin`](qiskit.transpiler.passes.synthesis.plugin.HighLevelSynthesisPlugin "qiskit.transpiler.passes.synthesis.plugin.HighLevelSynthesisPlugin") as a setuptools entry point in the package metadata. This is done by adding an `entry-points` table in `pyproject.toml` for the plugin package with the necessary entry points under the `qiskit.synthesis` namespace. For example: -```python +```toml [project.entry-points."qiskit.synthesis"] "clifford.special" = "qiskit_plugin_pkg.module.plugin:SpecialSynthesisClifford" ``` diff --git a/docs/api/qiskit/dev/visualization.mdx b/docs/api/qiskit/dev/visualization.mdx index b4c7825bcd3..cbbae68e72b 100644 --- a/docs/api/qiskit/dev/visualization.mdx +++ b/docs/api/qiskit/dev/visualization.mdx @@ -20,7 +20,7 @@ The visualization module contain functions that visualizes measurement outcome c To use visualization functions, you are required to install visualization optionals to your development environment: -```python +```bash pip install 'qiskit[visualization]' ```