Skip to content

feat: apply QASM pow/negctrl modifiers, add Kraus TP validation, add …#9

Merged
splch merged 1 commit intomainfrom
fix/qasm-modifiers-and-kraus-validation
Mar 12, 2026
Merged

feat: apply QASM pow/negctrl modifiers, add Kraus TP validation, add …#9
splch merged 1 commit intomainfrom
fix/qasm-modifiers-and-kraus-validation

Conversation

@splch
Copy link
Copy Markdown
Owner

@splch splch commented Mar 12, 2026

…feature matrix

  • QASM parser: pow(k) modifier now computes U^k via matrix multiplication (integer k only; non-integer returns parse error)
  • QASM parser: negctrl modifier decomposes to X-sandwich around controlled gate
  • gate.Pow(g, k) computes integer matrix power (k=0→I, k<0→inverse)
  • noise.Custom/MustCustom creates channels from user Kraus operators with trace-preservation validation (sum E_k†E_k = I, 1e-10 tolerance)
  • docs/feature-matrix.md: comprehensive comparison vs Qiskit, Cirq, PennyLane, Braket SDK, Q#/QDK, PyQuil across 18 categories

…feature matrix

- QASM parser: pow(k) modifier now computes U^k via matrix multiplication
  (integer k only; non-integer returns parse error)
- QASM parser: negctrl modifier decomposes to X-sandwich around controlled gate
- gate.Pow(g, k) computes integer matrix power (k=0→I, k<0→inverse)
- noise.Custom/MustCustom creates channels from user Kraus operators with
  trace-preservation validation (sum E_k†E_k = I, 1e-10 tolerance)
- docs/feature-matrix.md: comprehensive comparison vs Qiskit, Cirq,
  PennyLane, Braket SDK, Q#/QDK, PyQuil across 18 categories
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@splch splch merged commit 9ef50a8 into main Mar 12, 2026
6 checks passed
@splch splch deleted the fix/qasm-modifiers-and-kraus-validation branch March 12, 2026 21:20
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.

1 participant