SUCCESS
Program(
  api_version: 3.0
  version: <
    Version(
      items: 3
    )
  >
  qubit_variable_declaration: <
    Variable(
      name: q
      typ: <
        QubitArray(
          size: 2
        )
      >
      annotations: []
    )
  >
  block: <
    Block(
      statements: [
        Instruction(
          instruction_ref: H(qubit)
          name: H
          operands: [
            IndexRef(
              variable --> <
                Variable(
                  name: q
                  typ: <
                    QubitArray(
                      size: 2
                    )
                  >
                  annotations: []
                )
              >
              indices: [
                ConstInt(
                  value: 0
                )
              ]
            )
          ]
          annotations: []
        )
        Instruction(
          instruction_ref: H(qubit)
          name: H
          operands: [
            IndexRef(
              variable --> <
                Variable(
                  name: q
                  typ: <
                    QubitArray(
                      size: 2
                    )
                  >
                  annotations: []
                )
              >
              indices: [
                ConstInt(
                  value: 1
                )
              ]
            )
          ]
          annotations: []
        )
        Instruction(
          instruction_ref: CNOT(qubit, qubit)
          name: CNOT
          operands: [
            IndexRef(
              variable --> <
                Variable(
                  name: q
                  typ: <
                    QubitArray(
                      size: 2
                    )
                  >
                  annotations: []
                )
              >
              indices: [
                ConstInt(
                  value: 0
                )
              ]
            )
            IndexRef(
              variable --> <
                Variable(
                  name: q
                  typ: <
                    QubitArray(
                      size: 2
                    )
                  >
                  annotations: []
                )
              >
              indices: [
                ConstInt(
                  value: 1
                )
              ]
            )
          ]
          annotations: []
        )
      ]
    )
  >
)

