You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/compilation-passes/exporting/quantify-scheduler-exporter.md
+45-46Lines changed: 45 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,30 +1,31 @@
1
-
The [quantify-scheduler](https://quantify-os.org/docs/quantify-scheduler/) exporter (`ExportFormat.QUANTIFY_SCHEDULER`)
2
-
exports the circuit to [`Schedule`](https://quantify-os.org/docs/quantify-scheduler/v0.25.0/autoapi/quantify_scheduler/index.html#quantify_scheduler.Schedule)
3
-
object and a _bitstring mapping_.
1
+
The [quantify-scheduler](https://quantify-os.org/docs/quantify-scheduler/) exporter (`QuantifySchedulerExporter`)
2
+
exports the circuit to a [`Schedule`](https://quantify-os.org/docs/quantify-scheduler/v0.25.0/autoapi/quantify_scheduler/index.html#quantify_scheduler.Schedule)
3
+
object.
4
4
5
-
The latter can be used to relate the measurement outcomes to the (virtual) bit variables they have
6
-
been assigned to in the cQASM circuit: this connection is lost in the `Schedule`.
5
+
!!! warning "The _bit string mapping_ has been deprecated"
7
6
8
-
!!! warning "Under active development"
9
-
10
-
The bitstring mapping, currently, consists of a list of ordered pairs; the first element denotes the acquisition
11
-
index $i$ and the second element denotes the qubit index $j$.
12
-
The acquisition index represents the $i$-th measurement on qubit at index $j$.
13
-
The index $k$ of the ordered pair in the bitstring mapping corresponds to the index of the (virtual) bit register,
14
-
referring to the (virtual) bit variable the outcome of measurement $(i,j)$ has been assigned to in the
15
-
cQASM circuit.
7
+
The `QuantifySchedulerExporter` used to return a bit string mapping next to the `Schedule`.
8
+
This bit string mapping has been deprecated.
9
+
To obtain a mapping from the measurements to the bit register index their outcomes are assigned to,
10
+
use the circuit property `Circuit.measurement_to_bit_map`, instead.
Furthermore, measurement outcomes are related to the (virtual) bit registers they were assigned to in the cQASM circuit
39
-
through the _bitstring mapping_, as described above.
39
+
Furthermore, measurement outcomes are related to the (virtual) bit registers they were assigned to in the cQASM circuit.
40
+
Their mapping can be obtained through the `Circuit.measurement_to_bit_map` property, as described above.
40
41
3. The non-unitary [`init`](https://qutech-delft.github.io/cQASM-spec/latest/language_specification/statements/instructions/non_unitary_instructions/init_instruction.html)
41
42
instruction is ignored and [`reset`](https://qutech-delft.github.io/cQASM-spec/latest/language_specification/statements/instructions/non_unitary_instructions/reset_instruction.html)
42
43
instruction is translated to [`Reset`](https://quantify-os.org/docs/quantify-scheduler/v0.25.0/autoapi/quantify_scheduler/operations/gate_library/index.html#quantify_scheduler.operations.gate_library.Reset).
@@ -72,7 +73,7 @@ The four examples below show how circuits written in [cQASM](https://qutech-delf
72
73
73
74
```python
74
75
from opensquirrel import Circuit
75
-
from opensquirrel.passes.exporter import ExportFormat
76
+
from opensquirrel.passes.exporter import QuantifySchedulerExporter
76
77
```
77
78
78
79
```python
@@ -89,11 +90,11 @@ The four examples below show how circuits written in [cQASM](https://qutech-delf
0 commit comments