Open arsalan-motamedi opened 1 month ago
Attention: Patch coverage is 93.90244%
with 15 lines
in your changes missing coverage. Please review.
Project coverage is 89.88%. Comparing base (
8c705c0
) to head (fdfbe02
).
Files with missing lines | Patch % | Lines |
---|---|---|
mrmustard/lab_dev/circuit_components.py | 88.23% | 14 Missing :warning: |
...mustard/lab_dev/circuit_components_utils/b_to_q.py | 98.24% | 1 Missing :warning: |
Context: We need a way to handle representations, without needing to worry about them when taking contractions.
Description of the Change: The main change is adding
_index_representation
as an attribute toCircuitComponent
, which keeps track of representation on each index.Benefits: We don't need to worry about
BtoQ
andBtoPS
changing the result of contractions.Possible Drawbacks: All contractions are computed in Bargmann still. We may want to enforce contacting in a specific representation.
Related GitHub Issues: None.