Skip to content

Commit ef35414

Browse files
committed
Add release note
Style fixes
1 parent be6fca5 commit ef35414

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

qiskit_ibm_runtime/circuit/library/mid_circuit_measure.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,19 @@
1010
# copyright notice, and modified files need to carry a notice indicating
1111
# that they have been altered from the originals.
1212

13+
"""MidCircuitMeasure gate."""
14+
1315
from qiskit.circuit import Instruction
1416

1517

1618
class MidCircuitMeasure(Instruction):
17-
def __init__(self, name="measure_2", label=None):
19+
"""
20+
This instruction implements an alternative 'named' measurement definition
21+
(1 classical bit, 1 quantum bit), whose name can be used to map to a corresponding
22+
mid-circuit measurement instruction implementation on hardware.
23+
"""
24+
25+
def __init__(self, name: str = "measure_2", label: str = None) -> None:
1826
if not name.startswith("measure_"):
1927
raise ValueError(
2028
"Invalid name for mid-circuit measure instruction."
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The `qiskit-ibm-runtime` package has been extended with two new modules: :mod:`.circuit` and
2+
:mod:`.circuit.library`. These modules are designed to mirror the structure of the
3+
corresponding `qiskit` SDK modules, while providing vendor-specific implementations of
4+
circuit objects and instructions.
5+
6+
The first addition to this new circuit library is the :class:`.MidCircuitMeasure` class.
7+
This class enables the creation of instructions that follow the naming convention
8+
`measure_<identifier>`, which are mapped to specific mid-circuit measurement
9+
hardware instructions matching that pattern.

0 commit comments

Comments
 (0)