dwavesystems / dwave-gate

dwave-gate is a software package for constructing, modifying and running quantum circuits on the provided state-vector simulator.
Apache License 2.0
15 stars 8 forks source link

Consider adding a way to retrieve a qubit by label from a register #15

Closed arcondello closed 1 year ago

arcondello commented 1 year ago

I would be nice to be able to do something like

with circuit.context as register:
    q1 = register.bylabel("q1")

Additional Considerations I believe that labels can be duplicated, so would need to handle that case somehow.