Code like this:
|
let gate_operands = barrier.qubit_list().map(|operands| { |
|
operands |
|
.gate_operands() |
|
.map(|qubit| from_gate_operand(qubit, context)) |
|
.collect() |
is repeated in several places. It should be factored into a function from_qubit_list or ast_from_qubit_list.
Code like this:
openqasm3_parser/crates/oq3_semantics/src/syntax_to_semantics.rs
Lines 393 to 397 in dac0d7a
is repeated in several places. It should be factored into a function
from_qubit_listorast_from_qubit_list.