{
  "standard": "QP101-ZY",
  "version": "1.0",
  "num_qubits": 3,
  "operations": [
    {
      "type": "noise",
      "gate": "DEPOLARIZE1",
      "params": [1.0],
      "raw_targets": [{ "kind": "qubit", "index": 0 }],
      "annotations": [
        {
          "kind": "marker",
          "target_slots": [0],
          "label": "X",
          "style": {
            "preset": "danger",
            "color": "red",
            "highlight": true
          },
          "tags": ["sample-trace", "query-result"],
          "context": {
            "annotation_kind": "noise",
            "branch_label": "X",
            "instr_name": "DEPOLARIZE1",
            "op_path": [0],
            "query_kind": "sample_trace",
            "repeat_iterations": [],
            "target_qubits": [0]
          }
        }
      ]
    },
    {
      "type": "noise",
      "gate": "LOSS",
      "params": [1.0],
      "raw_targets": [{ "kind": "qubit", "index": 1 }],
      "annotations": [
        {
          "kind": "marker",
          "target_slots": [0],
          "label": "L",
          "style": {
            "preset": "danger",
            "color": "red",
            "highlight": true
          },
          "tags": ["sample-trace", "query-result"],
          "context": {
            "annotation_kind": "noise",
            "branch_label": "L",
            "instr_name": "LOSS",
            "op_path": [1],
            "query_kind": "sample_trace",
            "repeat_iterations": [],
            "target_qubits": [1]
          }
        }
      ]
    },
    {
      "type": "noise",
      "gate": "LOSS",
      "params": [1.0],
      "raw_targets": [{ "kind": "qubit", "index": 2 }],
      "annotations": [
        {
          "kind": "marker",
          "target_slots": [0],
          "label": "L",
          "style": {
            "preset": "danger",
            "color": "red",
            "highlight": true
          },
          "tags": ["sample-trace", "query-result"],
          "context": {
            "annotation_kind": "noise",
            "branch_label": "L",
            "instr_name": "LOSS",
            "op_path": [2],
            "query_kind": "sample_trace",
            "repeat_iterations": [],
            "target_qubits": [2]
          }
        }
      ]
    },
    {
      "type": "gate",
      "gate": "M",
      "targets": [1],
      "annotations": [
        {
          "kind": "marker",
          "target_slots": [0],
          "label": "1[L]",
          "tags": ["sample-trace", "query-result"],
          "context": {
            "annotation_kind": "measurement",
            "bit": true,
            "component": "value",
            "instr_name": "M",
            "loss_cause": true,
            "measurement_index": 1,
            "op_path": [3],
            "query_kind": "sample_trace",
            "repeat_iterations": [],
            "target_qubit": 1
          }
        }
      ]
    },
    {
      "type": "gate",
      "gate": "MRL",
      "targets": [2],
      "annotations": [
        {
          "kind": "marker",
          "target_slots": [0],
          "label": "L=1 | M=1[L]",
          "tags": ["sample-trace", "query-result"],
          "context": {
            "annotation_kind": "measurement",
            "components": {
              "loss_flag": {
                "bit": true,
                "measurement_index": 2
              },
              "value": {
                "bit": true,
                "loss_cause": true,
                "measurement_index": 3
              }
            },
            "instr_name": "MRL",
            "loss_visible": true,
            "op_path": [4],
            "query_kind": "sample_trace",
            "repeat_iterations": [],
            "target_qubit": 2
          }
        }
      ]
    },
    {
      "type": "detector",
      "coords": [],
      "sources": [{ "kind": "rec", "offset": -3 }],
      "annotations": [
        {
          "kind": "marker",
          "label": "D0",
          "style": {
            "preset": "info",
            "color": "blue",
            "highlight": true
          },
          "tags": ["dem-symptom", "query-result"],
          "context": {
            "annotation_kind": "detector",
            "detector_index": 0,
            "flipped": true,
            "op_path": [5],
            "query_kind": "sample_trace",
            "repeat_iterations": []
          }
        }
      ]
    }
  ],
  "metadata": {
    "framework": "rstim"
  }
}
