code: def _bulk_to_chimera(M, N, L, qubits):
      "Converts a list of linear indices to chimera coordinates."
      return [(q // N // L // 2, (q // L // 2) % N, (q // L) % 2, q % L) for q in qubitsf _bulk_to_chimera(M, N, L, qubits):
      "Converts a list of linear indices to chimera coordinates."
      return [(q // N // L // 2, (q // L // 2) % N, (q // L) % 2, q % L) for q in qubits]
docs: Converts a list of linear indices to chimera coordinates.