Skip to content

Commit c379b59

Browse files
committed
Instruction IDs and property keys.
1 parent 3aea86f commit c379b59

5 files changed

Lines changed: 10 additions & 1 deletion

File tree

source/pip/qsharp/qre/instruction_ids.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ MEMORY: int
9292

9393
# Some special hardware physical instructions
9494
CYCLIC_SHIFT: int
95+
HAND_OFF: int
9596

9697
# Generic operation (for unified RE)
9798
GENERIC: int

source/pip/qsharp/qre/property_keys.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ LOGICAL_MEMORY_QUBITS: int
1818
ALGORITHM_COMPUTE_QUBITS: int
1919
ALGORITHM_MEMORY_QUBITS: int
2020
NAME: int
21+
LOSS: int
22+
LOGICAL_CYCLE_TIME: int

source/pip/src/qre.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1581,6 +1581,7 @@ fn add_instruction_ids(m: &Bound<'_, PyModule>) -> PyResult<()> {
15811581
WRITE_TO_MEMORY,
15821582
MEMORY,
15831583
CYCLIC_SHIFT,
1584+
HAND_OFF,
15841585
GENERIC
15851586
);
15861587

@@ -1628,7 +1629,9 @@ fn add_property_keys(m: &Bound<'_, PyModule>) -> PyResult<()> {
16281629
LOGICAL_MEMORY_QUBITS,
16291630
ALGORITHM_COMPUTE_QUBITS,
16301631
ALGORITHM_MEMORY_QUBITS,
1631-
NAME
1632+
NAME,
1633+
LOSS,
1634+
LOGICAL_CYCLE_TIME,
16321635
);
16331636

16341637
m.add_submodule(&property_keys)?;

source/qre/src/isa/property_keys.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,6 @@ define_properties! {
6363
ALGORITHM_COMPUTE_QUBITS,
6464
ALGORITHM_MEMORY_QUBITS,
6565
NAME,
66+
LOSS,
67+
LOGICAL_CYCLE_TIME,
6668
}

source/qre/src/trace/instruction_ids.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ define_instructions! {
130130

131131
// Some special hardware physical instructions
132132
(CYCLIC_SHIFT, 0x1300),
133+
(HAND_OFF, 0x1301),
133134

134135
// Generic operation (for unified RE)
135136
(GENERIC, 0xFFFF),

0 commit comments

Comments
 (0)