Skip to content

Conversation

@dcoldeira
Copy link

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+:

  • Pattern API: get_graph()extract_graph() (returns NetworkX graph)
  • Pattern API: get_measurement_commands() → iterate and filter for M commands
  • ResourceGraph: .type.cltype
  • local_clifford_circuit(): handle Clifford enum (not just int)
  • Processor: remove source param (removed in perceval 1.1)
  • Processor: with_polarized_input()with_input()
  • Sampler: fix probs() output parsing
  • Add Python 3.13 support

Related issue:
Builds on PR #5 by @shinich1

Test results:
10/11 tests passing. test_bell_state_and_ry_with_pauli_meas has a bit-ordering difference that may be a convention change in graphix 0.3.3.

shinich1 and others added 7 commits January 26, 2026 20:04
  - 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants