pennylane icon indicating copy to clipboard operation
pennylane copied to clipboard

Create a `measured_wires` property on `QuantumScript`

Open antalszava opened this issue 3 years ago • 1 comments

Feature details

Some features require knowledge about all the wires being measured on a quantum script (e.g., serialization to OpenQasm format). Furthermore, this information might be useful for devices (e.g., default.mixed already uses this).

There could be a measured_wires property in the QuantumScript class that gathers the measured wires. Approaches to collecting these wires only on demand should be considered along with caching.

Implementation

No response

How important would you say this feature is?

1: Not important. Would be nice to have.

Additional information

No response

antalszava avatar Oct 24 '22 14:10 antalszava

I have a pull request addressing this issue here: https://github.com/PennyLaneAI/pennylane/pull/3655.

comp-phys-marc avatar Jan 20 '23 06:01 comp-phys-marc