Skip to content

Commit

Permalink
Update path for upload VQE program (#180)
Browse files Browse the repository at this point in the history
* Small change.

* Update location.

* Run black.

* Update.

* Change init.

* Black.

* Update import

* Blank line.

* Update.

* Update.

* Update.

* Update path.
  • Loading branch information
rmoyard authored Feb 1, 2022
1 parent 8142d32 commit df9646a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pennylane_qiskit/vqe_runtime_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,8 @@ def upload_vqe_runner(hub="ibm-q", group="open", project="main", **kwargs):

provider = IBMQ.get_provider(hub=hub, group=group, project=project)
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
PROG_DIR = "runtime_programs"
PROG_FILE = "vqe_runtime_program.py"
prog_path = os.path.join(PROG_DIR, PROG_FILE)
program_path = os.path.join(ROOT_DIR, prog_path)
program_path = os.path.join(ROOT_DIR, PROG_FILE)

program_id = provider.runtime.upload_program(data=program_path, metadata=meta)
return program_id
Expand Down

0 comments on commit df9646a

Please sign in to comment.