-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
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
Add support for specifiying the device that runcircuit
is run on as well as the element type
#282
Conversation
…ell as the element type
Hopefully fixes #274. |
Codecov Report
@@ Coverage Diff @@
## master #282 +/- ##
==========================================
- Coverage 87.57% 87.38% -0.20%
==========================================
Files 22 22
Lines 2205 2298 +93
==========================================
+ Hits 1931 2008 +77
- Misses 274 290 +16
Continue to review full report at Codecov.
|
Ok this has been driving me nuts, but apparently if I run the test with the new tests I added ("test_gpu.jl") before I run some of the tests involving process tomography, the process tomography tests fail. I have no clue why that is happening... If I run the process tomography tests in isolation locally, or run the "test_gpu.jl" tests after those tests, it all passes, so I think I will investigate that later and merge this. |
The interface is:
Internally this transfers the starting state/process and circuit tensors to
device
and converts the element types of the starting state/process and circuit tensors toeltype
.This also work if you pass the gate tensors and state/process explicitly.