amazon-braket / autoqasm

AutoQASM is an experimental module offering a new quantum-imperative programming experience in Python for developing quantum programs.
Apache License 2.0
15 stars 9 forks source link

Merge QubitTable changes into main branch of default simulator #20

Open rmshaffer opened 5 months ago

rmshaffer commented 5 months ago

Describe the feature you'd like The QubitTable class in autoqasm.simulator.program_context is almost an exact duplicate of the one in the default simulator repo.

The AutoQASM version of this class is here: https://github.com/amazon-braket/autoqasm/blob/812827123b3c9fb80090549e3bf0a7c8c5cc0224/src/autoqasm/simulator/program_context.py#L42-L181

The default simulator implementation is here: https://github.com/amazon-braket/amazon-braket-default-simulator-python/blob/a4d7f98cb123ae6a1092972e728d2dbb93cb27b5/src/braket/default_simulator/openqasm/program_context.py#L96-L150

We should merge the changes into the default simulator repo and delete the QubitTable class from this repo.

How would this feature be used? Please describe. This will reduce code duplication and improve maintainability.

Describe alternatives you've considered n/a

Additional context n/a