wrong error message on matrix multiplication type error #467

Closed
opened 2024-07-21 13:31:12 +08:00 by sb10q · 0 comments
Owner
from numpy import array as np_array

from artiq.experiment import *
from artiq.coredevice.core import Core

@nac3
class Test(EnvExperiment):
    core: KernelInvariant[Core]

    def build(self):
        self.setattr_device("core")

    @kernel
    def run(self):
        x = np_array([[1.0, 3.0], [1.09, 2.42]])
        y = 2.0 @ np_array([[1.0, 0.0], [0.0, 1.0]])
        for i in range(len(x)):
            print_rpc(y[i])
thread '<unnamed>' panicked at nac3core/src/toplevel/numpy.rs:84:85:
called `Option::unwrap()` on a `None` value
``` from numpy import array as np_array from artiq.experiment import * from artiq.coredevice.core import Core @nac3 class Test(EnvExperiment): core: KernelInvariant[Core] def build(self): self.setattr_device("core") @kernel def run(self): x = np_array([[1.0, 3.0], [1.09, 2.42]]) y = 2.0 @ np_array([[1.0, 0.0], [0.0, 1.0]]) for i in range(len(x)): print_rpc(y[i]) ``` ``` thread '<unnamed>' panicked at nac3core/src/toplevel/numpy.rs:84:85: called `Option::unwrap()` on a `None` value ```
lyken self-assigned this 2024-07-21 13:48:19 +08:00
lyken removed their assignment 2024-07-21 16:04:59 +08:00
lyken self-assigned this 2024-08-27 11:46:35 +08:00
sb10q closed this issue 2024-08-27 23:11:41 +08:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nac3#467
No description provided.