Right now, the compilation text appears to be returned as a single preformatted string.
I wrote a hacky function which parses the text into the three sections and returns it as a json object:
input_circuit, circuit_after_litinsky, circuit_after_pauli.
`
function parseCompilationText(compilation_text: string) {
const compilation_text_split = compilation_text.split("Circuit")
const input_circuit = compilation_text_split[1].slice(2)
const pauli_rotations_split = compilation_text_split[2].split(":")
const circuit_after_litinski_split = compilation_text_split[3].split(":")
return {
"input_circuit": input_circuit,
"circuit_after_pauli_rotations": pauli_rotations_split[1].slice(1, -1),
"circuit_after_litinski": circuit_after_litinski_split[1].slice(1),
}
}`
It seems like it would be better to output the data as a JSON formatted in this way from the Lambda rather than deconstructing the string back into a JSON object in the lattice view.