Skip to content

[FEATURE] Unroll ctrl @ qubit registers #127

@arulandu

Description

@arulandu

Feature Description

Add support for unrolling the control qubit register when n>1. Example:

Original

OPENQASM 3.0;
include "stdgates.inc";
qubit[2] a;
qubit b;

ctrl (2) @ x a, b[0];

Unrolled

OPENQASM 3.0;
include "stdgates.inc";
qubit[2] a;
qubit[1] b;
ccx a[0], a[1], b[0];

Implementation (Optional)

Modify the visitor _visit_generic_gate_operation and related methods

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions