Skip to content

🎨 Improve linear-type-tracking helpers in QCOProgramBuilder #1628

@denialhaag

Description

@denialhaag

Since #1580, the linear-type-tracking helpers in QCOProgramBuilder have become more complex because register information must also be tracked.

As proposed in #1580 (comment), this could be simplified again by returning Qubit structures from QCOProgramBuilder::allocQubit(). The DenseMap<Value, QubitInfo> could then be replaced by a DenseSet<Qubit>.

Similarly, the DenseMap<Value, TensorInfo> could be replaced by a DenseSet<Tensor>. It is likely not wise to track the QubitRegister structure introduced in #1627 because it also contains a SmallVector of (outdated) qubits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    MLIRAnything related to MLIRenhancementImprovement of existing feature

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions