Open
Conversation
- Update Pattern API: get_graph() -> extract_graph() - Update Pattern API: get_measurement_commands() -> iterate with isinstance(M) - Update ResourceGraph.type -> ResourceGraph.cltype - Handle Clifford enum in local_clifford_circuit() - Update Processor API: remove source param, use with_input() - Fix Sampler.probs() output parsing - Add Python 3.13 support 10/11 tests passing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.