You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for StatePrep and BasisState in QJIT with PLxPR program capture (#1631)
**Context:** Currently, when you try to execute a circuit containing
`qml.StatePrep()` through the QJIT pipeline with PLxPR program capture
enabled it results in an error, since the operation is bound to the
`qinst_p` primitive rather than the `set_state_p` primitive. `qinst_p`
primitives expect input parameters to be of type `float64`, but
`StatePrep` can have complex input values, hence the error (see issue
#1630 for details).
**Description of the Change:** Binds `qml.StatePrep` operations to the
`set_state_p` primitive to correctly support StatePrep in QJIT with
PLxPR program capture. This PR also adds support for `qml.BasisState()`
in QJIT with PLxPR capture since it is closely related to StatePrep.
**Related GitHub Issues:** Fixes#1630
[[sc-88638](https://app.shortcut.com/xanaduai/story/88638/make-qml-stateprep-qjit-compatible-with-plxpr-program-capture),
[sc-88653](https://app.shortcut.com/xanaduai/story/88653/stateprep-not-supported-in-qjit-with-plxpr-program-capture-enabled)]
0 commit comments