Context: A proposal to change CircuitComponent's signature to accept Wires optionally. Additionally, removing CCViews in the hopes of reintroducing a better solution.
Description of the Change: CircuitComponent's signature changes from
where the Sequence[tuple[int]] would be (modes_out_bra, modes_in_bra, modes_out_ket, modes_in_ket).
Benefits: Cleaner signature for circ components. Pylint issue fixed with the removal of CCViews.
Possible Drawbacks:modes_out_bra, modes_in_bra, modes_out_ket, modes_in_ket are no longer kwargs and instead a length 4 sequence. This could be more prone to errors. However, my initial thinking is that the classes exposed to users (eg gates or states) would handle constructing the sequence so we wouldnt have to worry about that.
Context: A proposal to change
CircuitComponent
's signature to acceptWires
optionally. Additionally, removing CCViews in the hopes of reintroducing a better solution.Description of the Change: CircuitComponent's signature changes from
to
where the
Sequence[tuple[int]]
would be(modes_out_bra, modes_in_bra, modes_out_ket, modes_in_ket)
.Benefits: Cleaner signature for circ components. Pylint issue fixed with the removal of CCViews.
Possible Drawbacks:
modes_out_bra
,modes_in_bra
,modes_out_ket
,modes_in_ket
are no longer kwargs and instead a length 4 sequence. This could be more prone to errors. However, my initial thinking is that the classes exposed to users (eg gates or states) would handle constructing the sequence so we wouldnt have to worry about that.