Skip to content

Commit

Permalink
updated ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
gsilviHQS committed Sep 13, 2022
1 parent c5f1e5a commit eda8494
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 109 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ env/
.vscode/
misc/notebooks/Figs_august/*
misc/notebooks/Figures/*
QLMtools/package_installer.py
77 changes: 0 additions & 77 deletions QLMtools/package_installer.py

This file was deleted.

25 changes: 2 additions & 23 deletions QLMtools/uploader_library.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,36 +57,15 @@ def upload(self):
print("Starting upload and updating the remote configuration")
result = plugin.compile(Batch(), HardwareSpecs()) # Compile the plugin, this will trigger the copy of the files
print("Updating remote configuration (to publish the code)...")
# connection = QLMaaSConnection() # Create the connection
# new_paths = [self.path] # Create the new paths
# new_modules = [] # Create the new modules
# for fname in self.files: # For each file
# module_name = fname.replace(".py", "").replace("./", "") # Get the module name, removing the extension
# new_modules.append(module_name) # Add the module name to the list
# print(">> uploading new configuration")
# connection.update_config(new_paths, new_modules, False) # Update the configuration, this will publish the code
# print("Checking if the upload finished")
# result.join() # Wait for the upload to finish
# print("Done!")
# config = connection.get_config() # Get the configuration
# new_paths = list(set(config.paths)) # Get the new paths
# new_modules = list(set(config.modules)) # Get the new modules
# connection.update_config(new_paths, new_modules, True) # Update the configuration, this will publish the code
# import os
# # os.system("python3 -m pip list")
# # os.system("python3 --version")
# print(f"The new configuration is:\n{connection.get_config()}")


import os
import itertools
path1 = "../qiskit_mod/qiskit_nat/"
path2 = "../qiskit_mod/qiskit_ter/"

paths = [path1, path2]
# for (dirpath, dirnames, filenames) in itertools.chain.from_iterable(os.walk(path) for path in paths):
# print(dirpath)
# filenames = [dirpath + s for s in filenames]
# f.extend(filenames)

for path in paths:
f = []
for item in os.listdir(path):
Expand Down
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ This repositorycollects Python scripts and Jupyter notebooks that allow the user
that are built upon Qiskit libraries.

The repository is organized as follows:
- 'misc' folder contain the notebooks and scripts that showcase the variational algorithms
- 'qiskit_mod' contains our custom functions that are built upon Qiskit libraries as well as the QLM custom junction and helpers:
- 'qiskit_nat' the customize function built upon qiskit_nature
- 'qiskit_ter' the customize function built upon qiskit_terra
- 'my_junction.py' the QLM custom junction used to run the variational algorithms with QLM backends
- 'uploader_junction.py' helper to upload the junction to QLMaaS server, so that it can be found in the remote library
- 'wrapper2myqlm.py' helper to wrap the variational algorithms using QLM stack
- 'tests' unit tests for the variational algorithms

- **misc** contain the notebooks and scripts that showcase the variational algorithms
- **qiskit_mod** contains our custom functions that are built upon Qiskit libraries as well as the QLM custom junction and helpers:
- **qiskit_nat** the customize function built upon qiskit_nature
- **qiskit_ter** the customize function built upon qiskit_terra
- *my_junction.py* the QLM custom junction used to run the variational algorithms with QLM backends
- *uploader_junction.py* helper to upload the junction to QLMaaS server, so that it can be found in the remote library
- *wrapper2myqlm.py* helper to wrap the variational algorithms using QLM stack
- **tests** unit tests for the variational algorithms
- **QLMtools** additional tools to upload qiskit_mod to QLMaaS server
- *uploader_library.py* helper to upload the qiskit_mod library to QLMaaS server
## Licence

The `LICENCE` file contains the default licence statement as specified in the proposal and partner agreement.
Expand Down

0 comments on commit eda8494

Please sign in to comment.