catalyst
catalyst copied to clipboard
Replace ShapedArray with DShapeArray objects in measure primitives
trafficstars
Context: Measure primitives still return ShapedArray objects, which forces variables like the number of shots or number of wires to be known at compilation time. With the support for DShapedArray objects, this constraint can be removed.
Description of the Change: Change ShapedArray with DShapedArray objects and remove related assertions.
Benefits: Eliminating the need to know the number of shots/wires statically is a step towards allowing us to compile programs that don't have a fixed number of qubits.
[sc-74736]