You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importfast_pauli._fast_pauliasfpimportnumpyasnpn_strings=10coeffs=np.random.rand(n_strings).astype(np.complex128)
strings= ["".join(np.random.choice(["I", "X", "Y", "Z"], 4)) for_inrange(n_strings)]
print(strings)
print("should be in ctor 1")
op=fp.PauliOp(coeffs, [fp.PauliString(s) forsinstrings])
print("should be in ctor 2")
op=fp.PauliOp(coeffs.tolist(), [fp.PauliString(s) forsinstrings])
print("should be in ctor 3")
op=fp.PauliOp(coeffs.tolist(), strings)
op=fp.PauliOp(coeffs, strings) # Why does this not error at runtime?
The text was updated successfully, but these errors were encountered:
General
@stand-by noticed some strange ctor behavior outlined below
Detail
The text was updated successfully, but these errors were encountered: