catalyst icon indicating copy to clipboard operation
catalyst copied to clipboard

[BUG] Passing a list of wires to `qml.Identity` causes QJIT to segmentation fault

Open willjmax opened this issue 1 year ago • 1 comments
trafficstars

The following code will produce a segmentation fault due to the use of qml.Identity([0, 1]).

dev = qml.device("lightning.qubit", wires=2)

@qjit
@qml.qnode(dev)
def circuit():
    qml.Identity([0, 1])
    return qml.state()

circuit()

willjmax avatar Oct 03 '24 12:10 willjmax