Fix graphix 0.3.3 compatibility #6
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context (if applicable):
graphix-perceval is incompatible with graphix 0.3.3+ and perceval-quandela 1.1+ due to API changes. This blocks users from using the library with current versions of these dependencies.
Description of the change:
Updates graphix-perceval to work with graphix 0.3.3+ and perceval-quandela 1.1+:
get_graph()→extract_graph()(returns NetworkX graph)get_measurement_commands()→ iterate and filter for M commands.type→.cltypelocal_clifford_circuit(): handle Clifford enum (not just int)sourceparam (removed in perceval 1.1)with_polarized_input()→with_input()probs()output parsingRelated issue:
Builds on PR #5 by @shinich1
Test results:
10/11 tests passing.
test_bell_state_and_ry_with_pauli_meashas a bit-ordering difference that may be a convention change in graphix 0.3.3.