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
b541d75f
Commit
b541d75f
authored
Jul 09, 2019
by
Mccaskey, Alex
Browse files
removing list backends command line arg
Signed-off-by:
Alex McCaskey
<
mccaskeyaj@ornl.gov
>
parent
4874d844
Pipeline
#62584
passed with stages
in 11 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/xacc.py
View file @
b541d75f
...
...
@@ -60,7 +60,7 @@ def parse_args(args):
parser
.
add_argument
(
"--benchmark-requires"
,
type
=
str
,
help
=
"List the required services of specified BenchmarkAlgorithm."
,
required
=
False
)
parser
.
add_argument
(
"--benchmark-service"
,
type
=
str
,
help
=
"List the plugin names and files of specified service."
,
required
=
False
)
parser
.
add_argument
(
"--benchmark-install"
,
type
=
str
,
help
=
"Pull and install the benchmark specified plugin package."
,
required
=
False
)
parser
.
add_argument
(
"--list-backends"
,
type
=
str
,
help
=
"List the backends available for the provided Accelerator."
,
required
=
False
)
#
parser.add_argument("--list-backends", type=str, help="List the backends available for the provided Accelerator.", required=False)
if
hasPluginGenerator
:
subparsers
=
parser
.
add_subparsers
(
title
=
"subcommands"
,
dest
=
"subcommand"
,
...
...
@@ -493,19 +493,19 @@ def main(argv=None):
print
(
sysconfig
.
get_paths
()[
'platinclude'
])
sys
.
exit
(
0
)
if
opts
.
framework_help
:
Initialize
([
'--help'
])
return
if
opts
.
list_backends
is
not
None
:
acc
=
opts
.
list_backends
if
acc
==
'ibm'
:
info
(
'Retrieving remote IBM backend information'
)
Initialize
([
'--'
+
acc
+
'-list-backends'
])
elif
acc
==
'dwave'
:
info
(
'Retrieving remote D-Wave solver information'
)
Initialize
([
'--'
+
acc
+
'-list-solvers'
])
return
#
if opts.framework_help:
#
Initialize(['--help'])
#
return
#
if opts.list_backends is not None:
#
acc = opts.list_backends
#
if acc == 'ibm':
#
info('Retrieving remote IBM backend information')
#
Initialize(['--'+acc+'-list-backends'])
#
elif acc == 'dwave':
#
info('Retrieving remote D-Wave solver information')
#
Initialize(['--'+acc+'-list-solvers'])
#
return
if
not
opts
.
set_credentials
==
None
:
setCredentials
(
opts
)
...
...
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