Solomon
Solomon
Thanks, I shall check it out.
``` print (pq.__version__,paddle.__version__) > 2.2.2 2.3.0 ``` Before you ask me to upgrade to 2.4.xx .... please note: I am on a no-avx machine, e.g an Ubunto docker running inside...
``` ValueError Traceback (most recent call last) Cell In[7], line 27 25 print (type(rho_B), type(rho_G)) 26 # Convert to Numpy array to calculate the fidelity of the quantum state F(rho_B,...
Thank you so much for the response. Indeed, I amended the docker file, and now persisted it here for the record: https://github.com/BoltzmannEntropy/QMLDocker/blob/main/Dockerfile Again, many thanks.
This works: https://github.com/boschmitt/tweedledum/issues/179#issuecomment-1360285778 ``` installing collected packages: qiskit Successfully installed qiskit-0.39.4 sol@mprox dev % python Python 3.9.12 (main, Dec 2 2022, 15:48:07) [Clang 13.1.6 (clang-1316.0.21.2.5)] on darwin Type "help", "copyright",...
Thank you very much. For teaching purposes, is this the preferred method? ```Python %reset -f import numpy as np from numpy import pi as PI import paddle import paddle_quantum from...
Here, ``` from sympy import Matrix, symbols, sqrt, init_printing from sympy.physics.quantum import TensorProduct from IPython.display import display_pretty init_printing(use_latex=True) U_I = Matrix([[1,0], [0,1]]) U_H = 1/sqrt(2)*Matrix([[1, 1], [1,-1]]) U_Z=Matrix(2,2,[1,0,0,-1]) # U_Z=Matrix(2,2,[1,0,0,-1])...
@imppresser see the example here: https://faculty.washington.edu/seattle/physics541/11solved.pdf
Are you using a GPU? Can I see the a full code snippet?