Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ORNL Quantum Computing Institute
xacc
Commits
ba1cdb93
Commit
ba1cdb93
authored
Jul 08, 2019
by
Mccaskey, Alex
Browse files
fixing bug in tests when xacc-py is not available
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
534a8a94
Changes
1
Hide whitespace changes
Inline
Side-by-side
quantum/gate/accelerator/tests/ImprovedSamplingDecoratorTester.cpp
View file @
ba1cdb93
...
...
@@ -23,7 +23,7 @@ TEST(ImprovedSamplingDecoratorTester, checkSimple) {
int
shots
=
8192
;
int
nExecs
=
4
;
if
(
xacc
::
hasAccelerator
(
"local-ibm"
))
{
if
(
xacc
::
hasAccelerator
(
"local-ibm"
)
&&
xacc
::
hasCompiler
(
"xacc-py"
)
)
{
auto
acc
=
xacc
::
getAccelerator
(
"local-ibm"
);
auto
buffer
=
acc
->
createBuffer
(
"buffer"
,
2
);
...
...
@@ -58,7 +58,7 @@ TEST(ImprovedSamplingDecoratorTester, checkMultiple) {
int
shots
=
8192
;
int
nExecs
=
2
;
if
(
xacc
::
hasAccelerator
(
"local-ibm"
))
{
if
(
xacc
::
hasAccelerator
(
"local-ibm"
)
&&
xacc
::
hasCompiler
(
"xacc-py"
)
)
{
auto
acc
=
xacc
::
getAccelerator
(
"local-ibm"
);
auto
buffer
=
acc
->
createBuffer
(
"buffer"
,
2
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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