We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code:
from pytket.extensions.qiskit import AerBackend from pytket import Circuit print(AerBackend().run_circuit(Circuit(1).measure_all(), 10).get_counts())
Outputs: With numpy 1.26.4:
Counter({(0,): 10})
With numpy 2.1.3:
Counter({(np.uint8(0),): np.int64(10)})
The text was updated successfully, but these errors were encountered:
Minor comment.
I added a workaround to the quantum phase estimation example notebook -> https://docs.quantinuum.com/tket/user-guide/examples/algorithms_and_protocols/phase_estimation.html
See the the tuple_to_str function which avoids label clashing on the x-axis of the results plot. workaround added in CQCL/pytket-docs#410
tuple_to_str
Sorry, something went wrong.
Actually we were producing the same types in numpy 1, but never noticed because they were rendered differently.
In numpy 1, repr(numpy.uint8(1)) is 1; in numpy 2 it is np.uint8(1).
repr(numpy.uint8(1))
1
np.uint8(1)
int
get_counts()
^1.37
cqc-alec
Successfully merging a pull request may close this issue.
code:
Outputs:
With numpy 1.26.4:
With numpy 2.1.3:
The text was updated successfully, but these errors were encountered: