Closed ziofil closed 7 months ago
Context: There was a bug whereby e.g.
G = Bargmann(*Ggate(2).bargmann()) U = CircuitComponent(representation=G, modes_in_ket=[0,1], modes_out_ket=[0,1]) assert (U >> U.dual).representation == Dgate([0,1], x=0).representation # fails
Description of the Change: Added missing reordering of the representation
Benefits: Correct now
Possible Drawbacks: None
Related GitHub Issues: None
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 86.94%. Comparing base (a575f0c) to head (5db97ea).
a575f0c
5db97ea
Context: There was a bug whereby e.g.
Description of the Change: Added missing reordering of the representation
Benefits: Correct now
Possible Drawbacks: None
Related GitHub Issues: None