Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small formatting issue in qiskit.qpy docs (backport #13551) #13553

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading