Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ORNL Quantum Computing Institute
xacc
Commits
e69d4712
Commit
e69d4712
authored
Oct 29, 2019
by
Mccaskey, Alex
Browse files
fixing assert in js strategy
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
59600957
Pipeline
#77604
passed with stage
in 4 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
quantum/plugins/algorithms/ml/ddcl/strategies/js.hpp
View file @
e69d4712
...
...
@@ -110,7 +110,7 @@ public:
void
compute
(
std
::
vector
<
double
>
&
grad
,
std
::
vector
<
std
::
shared_ptr
<
AcceleratorBuffer
>>
results
,
const
std
::
vector
<
double
>
&
q_dist
,
const
std
::
vector
<
double
>
&
target_dist
)
override
{
assert
(
grad
.
size
()
==
2
*
results
.
size
());
assert
(
2
*
grad
.
size
()
==
results
.
size
());
// Get the number of shosts
int
shots
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment