Commit 4874d844 authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

removing unused python api command line args


Signed-off-by: Mccaskey, Alex's avatarAlex McCaskey <mccaskeyaj@ornl.gov>
parent ad90bb22
Pipeline #62575 passed with stages
in 10 minutes and 49 seconds
stages:
- build
- push
- wheel
docker build:
stage: build
......@@ -18,11 +17,3 @@ docker push:
- docker push xacc/base-plugin-ci
- docker system prune
- docker rmi -f xacc/base-plugin-ci
docker wheel:
stage: wheel
only:
- master
script:
- git diff --name-only HEAD~1 HEAD | grep VERSION && echo "Version Incremented" || echo "Version not incremented" && exit 0
- echo "Wheel building coming soon."
\ No newline at end of file
......@@ -54,12 +54,8 @@ def parse_args(args):
help="The IBM Q Project.", required=False)
parser.add_argument("-L", "--location", action='store_true',
help="Print the path to the XACC install location.", required=False)
parser.add_argument("-f", "--framework-help", action='store_true',
help="Print the help information for XACC and its available plugins.", required=False)
parser.add_argument("--python-include-dir", action='store_true',
help="Print the path to the Python.h.", required=False)
parser.add_argument("-b", "--branch", default='master', type=str,
help="Print the path to the XACC install location.", required=False)
parser.add_argument("--benchmark", type=str, help="Run the benchmark detailed in the given input file.", required=False)
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)
......
......@@ -581,11 +581,11 @@ inline void from_json(const json &j, xacc::ibm::QObjectConfig &x) {
x.set_memory_slots(j.at("memory_slots").get<int64_t>());
x.set_memory(j.at("memory").get<bool>());
x.set_parameter_binds(j.at("parameter_binds").get<std::vector<json>>());
x.set_meas_lo_freq(j.at("meas_lo_freq").get<std::vector<json>>());
if (j.find("meas_lo_freq") != j.end()) {x.set_meas_lo_freq(j.at("meas_lo_freq").get<std::vector<json>>());}
x.set_schedule_los(j.at("schedule_los").get<std::vector<json>>());
x.set_qubit_lo_freq(j.at("qubit_lo_freq").get<std::vector<json>>());
x.set_qubit_lo_range(j.at("qubit_lo_range").get<std::vector<json>>());
x.set_meas_lo_range(j.at("meas_lo_range").get<std::vector<json>>());
if (j.find("qubit_lo_freq") != j.end()) {x.set_qubit_lo_freq(j.at("qubit_lo_freq").get<std::vector<json>>());}
if (j.find("qubit_lo_range") != j.end()) {x.set_qubit_lo_range(j.at("qubit_lo_range").get<std::vector<json>>());}
if (j.find("meas_lo_range") != j.end()) {x.set_meas_lo_range(j.at("meas_lo_range").get<std::vector<json>>());}
x.set_meas_return(j.at("meas_return").get<std::string>());
x.set_meas_level(j.at("meas_level").get<int64_t>());
x.set_memory_slot_size(j.at("memory_slot_size").get<int64_t>());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment