Skip to content

Commit

Permalink
Remove Token (#10)
Browse files Browse the repository at this point in the history
* Add files via upload

* Removed - Open in Leap

* Update README.md

* Update README.md
  • Loading branch information
sarajamous authored Oct 31, 2023
1 parent 73b8279 commit cb6f2b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
12 changes: 3 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[![Open in Leap IDE](
https://cdn-assets.cloud.dwavesys.com/shared/latest/badges/leapide.svg)](
https://ide.dwavesys.io/#https://github.com/dwave-training/number-partitioning)


# The Number Partitioning Problem

Expand All @@ -13,19 +9,17 @@ In this exercise, you are given an Ocean program outline and must create
the QUBO dictionary (Q) that is provided to the D-Wave QPU and choose
appropriate values for `chainstrength` and `numruns`.

To run your program type `python npp.py`. You have successfully completed the
exercise when you are able to see output showing S0 sum and S1 sum are both
You have successfully completed the exercise when you are able to see an output showing S0 sum and S1 sum are both
equal to 83.

To complete the program, please complete the following:
To complete the program, please do the following:

- Add your token to the `get_token` function.
- Fill in the entries in your QUBO dictionary in the `get_qubo` function. In your QUBO dictionary use 0-7 for the variable names.
- Find good values for `chainstrength` and `numruns` in the `run_on_qpu`
function.

If you get stuck, you can first check that your QUBO is correct by setting
`chainstrength = None` on line 47 in `npp.py`. This will use the Ocean chain
`chainstrength = None`. This will use the Ocean chain
strength tuning tool, and set the chain strength for you.

## License
Expand Down
6 changes: 0 additions & 6 deletions npp.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@
## ------- import packages -------
from dwave.system import DWaveSampler, EmbeddingComposite

def get_token():
'''Returns personal access token. Only required if submitting to autograder.'''

# TODO: Enter your token here
return 'YOUR-TOKEN-HERE'

# TODO: Add code here to define your QUBO dictionary
def get_qubo(S):
"""Returns a dictionary representing a QUBO.
Expand Down

0 comments on commit cb6f2b2

Please sign in to comment.