Skip to content

Refactor lowering list of qubits (gate operands) in syntax_to_semantics.rs #163

Description

@jlapeyre

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.

Metadata

Metadata

Assignees

Labels

Looking for assigneeLooking to contribute? Browse these.Not too difficultMay be good if you are new to projecttech debtPay down some tech debt

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions