Open renezander90 opened 2 months ago
The following example:
from qrisp import QuantumArray, QuantumFloat import numpy as np qtype = QuantumFloat(3) q_array = QuantumArray(qtype, shape = 3) q_array.init_state([(np.array([1, 2, 3]), 1), (np.array([1, 2, 2]), 0.5j)]) print(q_array)
yields an error:
AttributeError: 'list' object has no attribute 'qs'
The following example:
yields an error: