-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
64 lines (49 loc) · 1.86 KB
/
README
File metadata and controls
64 lines (49 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
## Depp wiki
https://deepwiki.com/gzquse/DEAL_QUBO/4.3-traveling-salesperson-problem-(tsp)
`pip install -r requirements.txt`
`./pl_sum.py -p a -Y`
## For MVRP D-Wave quantum annealing:
2. Configure D-Wave credentials:
- Sign up for a D-Wave Leap account at https://cloud.dwavesys.com/leap/
- Install and configure D-Wave CLI:
```
dwave config create --full
```
- Follow prompts to enter your API token
3. Run MVRP solver:
```
cd mvrp
dwave solvers --list --all
python app.py
```
Optional arguments:
- `--vehicles`: Number of vehicles (default: 3)
- `--customers`: Number of customer locations (default: 10)
- `--annealing-time`: Annealing time in microseconds (default: 20)
- `--num-reads`: Number of samples to collect (default: 1000)
4. Results will be saved to `results/` directory including:
- Solution visualization
- Route assignments
- Computation statistics
### distribute training
./launch.sh
### Jupyter kernel
shifter --image=nersc/pytorch:24.06.01 \
$SCRATCH/qml_env -m ipykernel install \
--prefix $SCRATCH/qml_env --name qml_env --display-name qml_env
# latest qiskit
IMG=gzquse/qiskit-gpu:p1
podman-hpc run -it --gpu -e DISPLAY -v $SCRATCH/QML_2025:$QML_2025 -e SCRATCH $IMG bash
## get optimized circ qubo
1. ./benchmark.py -m hybrid -s qiskit.statevector_simulator --prjName kp
## switch conda env
2. conda activate qiskit
## dry run qiskit locally
3. ./np_backends.py --prjName maxcut
## dry run qpy circuit compiled from benchmark
4. ./np_backends.py --prjName qpy --infPath circ/hybrid_95a850.qpy --dryRun
## send to real quantum computer
5. export QISKIT_IBM_TOKEN="MY_IBM_CLOUD_API_KEY"
6. ./np_backends.py --prjName qpy --infPath circ/hybrid_95a850.qpy
wait until it finished and retrieve the results
7. ./np_backends.py --prjName plot --jobID cz4ynz710wx0008bhvvg --backend ibm_kyiv