Skip to content

Commit 7634b3e

Browse files
committed
Update QPY desc.
1 parent e2044e6 commit 7634b3e

1 file changed

Lines changed: 31 additions & 2 deletions

File tree

qiskit/qpy/__init__.py

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,9 @@ def open(*args):
382382
Version 14
383383
----------
384384
385-
Version 14 adds a new core DURATION type, as well as support for additional :class:`~.types.Type`
386-
classes.
385+
Version 14 adds a new core DURATION type, support for additional :class:`~.types.Type`
386+
classes :class:`~.types.Float` and :class:`~.types.Duration`, and a new expression
387+
node type :class:`~.expr.Stretch`.
387388
388389
DURATION
389390
~~~~~~~~
@@ -406,6 +407,34 @@ def open(*args):
406407
407408
============================== ========= =========================================================
408409
410+
Changes to EXPR_VAR_DECLARATION
411+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
412+
413+
The ``EXPR_VAR_DECLARATION`` type is now used to represent both :class:`~.expr.Var` standalone
414+
variables and :class:`~.expr.Stretch` identifiers. To support this change, the usage type code has
415+
two new possible entries, in addition to the existing ones:
416+
417+
========= =========================================================================================
418+
Type code Meaning
419+
========= =========================================================================================
420+
``A`` A ``capture`` stretch to the circuit.
421+
422+
``O`` A locally declared stretch to the circuit.
423+
424+
========= =========================================================================================
425+
426+
Changes to EXPRESSION
427+
---------------------
428+
429+
The EXPRESSION type code has a new possible entry, ``s``, corresponding to :class:`.expr.Stretch`
430+
nodes.
431+
432+
======================= ========= ====================================================== ========
433+
Qiskit class Type code Payload Children
434+
======================= ========= ====================================================== ========
435+
:class:`~.expr.Stretch` ``s`` One ``unsigned short var_index`` 0
436+
======================= ========= ====================================================== ========
437+
409438
Changes to EXPR_TYPE
410439
~~~~~~~~~~~~~~~~~~~~
411440

0 commit comments

Comments
 (0)