Skip to content

Commit

Permalink
Small formatting issue in qiskit.qpy docs (Qiskit#13551) (Qiskit#13553
Browse files Browse the repository at this point in the history
)

* Small formatting issue in qiskit.qpy docs

* missing execquote

* missing execquote

(cherry picked from commit 76ed697)

Co-authored-by: Luciano Bello <[email protected]>
  • Loading branch information
mergify[bot] and 1ucian0 authored Dec 11, 2024
1 parent bd07faa commit 1caefb5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qiskit/qpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,10 +447,10 @@
* - ``u``
- substitution
If the type value is ``f`` ,``c`` or ``i``, the corresponding ``lhs`` or `rhs``
If the type value is ``f``, ``c``, or ``i``, the corresponding ``lhs`` or ``rhs``
field widths are 128 bits each. In the case of floats, the literal value is encoded as a double
with 0 padding, while complex numbers are encoded as real part followed by imaginary part,
taking up 64 bits each. For ``i`, the value is encoded as a 64 bit signed integer with 0 padding
taking up 64 bits each. For ``i``, the value is encoded as a 64 bit signed integer with 0 padding
for the full 128 bit width. ``n`` is used to represent a ``None`` and typically isn't directly used
as it indicates an argument that's not used. For ``p`` the data is the UUID for the
:class:`.Parameter` which can be looked up in the symbol map described in the
Expand Down Expand Up @@ -546,7 +546,7 @@
Changes to EXPR_VAR
~~~~~~~~~~~~~~~~~~~
The EXPR_VAR variable has gained a new type code and payload, in addition to the pre-existing ones:
The ``EXPR_VAR`` variable has gained a new type code and payload, in addition to the pre-existing ones:
=========================== ========= ============================================================
Python class Type code Payload
Expand Down Expand Up @@ -693,9 +693,9 @@
====================== ========= ======================================================= ========
Qiskit class Type code Payload Children
====================== ========= ======================================================= ========
:class:`~.expr.Var` ``x`` One EXPR_VAR. 0
:class:`~.expr.Var` ``x`` One ``EXPR_VAR``. 0
:class:`~.expr.Value` ``v`` One EXPR_VALUE. 0
:class:`~.expr.Value` ``v`` One ``EXPR_VALUE``. 0
:class:`~.expr.Cast` ``c`` One ``_Bool`` that corresponds to the value of 1
``implicit``.
Expand Down

0 comments on commit 1caefb5

Please sign in to comment.