Repository navigation
qp.ctrl of qfuncs keeps work_wire_type - #10355
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #10355 +/- ##
==========================================
- Coverage 99.44% 99.43% -0.01%
==========================================
Files 617 617
Lines 68032 68032
==========================================
- Hits 67652 67651 -1
- Misses 380 381 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
**Context:** Follow-up to PennyLaneAI/pennylane#10355, adds `work_wire_type` to the controlled region primitive. Note that this change is purely in the frontend. **Description of the Change:** **Benefits:** **Possible Drawbacks:** **Related GitHub Issues:** [sc-134199] --------- Co-authored-by: Mudit Pandey <18223836+mudit2812@users.noreply.github.com> Co-authored-by: Andrija Paurevic <46359773+andrijapau@users.noreply.github.com>
Context:
>>> jax.make_jaxpr(circuit)() { lambda ; . let ctrl_transform[ control_values=(True, True) jaxpr={ lambda ; . let _:AbstractOperator() = operator[ adjoint=False forward_mask=() hybrid_lens=() hybrid_trees=() n_ctrls=0 op_cls=<class 'pennylane.ops.qubit.non_parametric_ops.PauliX'> wire_lens=(1,) ] 0:i32[] in () } n_consts=0 n_control=2 work_wires=[3, 4] ] 1:i32[] 2:i32[] in () }Description of the Change:
Benefits:
Possible Drawbacks:
Related GitHub Issues:
[sc-134199]