Skip to content

Commit

Permalink
Support for Dynex SDK 0.1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
dynexcoin authored Aug 12, 2024
1 parent 9afa188 commit b684bdd
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 32 deletions.
2 changes: 1 addition & 1 deletion circuit_example_complex_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"outputs": [],
"source": [
"import dynex\n",
"import dynex_circuit\n",
"from dynex import dynex_circuit\n",
"from pennylane import numpy as np\n",
"import pennylane as qml"
]
Expand Down
2 changes: 1 addition & 1 deletion circuit_example_complex_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"outputs": [],
"source": [
"import dynex\n",
"import dynex_circuit\n",
"from dynex import dynex_circuit\n",
"from pennylane import numpy as np\n",
"import pennylane as qml"
]
Expand Down
2 changes: 1 addition & 1 deletion circuit_example_grover.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"outputs": [],
"source": [
"import dynex\n",
"import dynex_circuit\n",
"from dynex import dynex_circuit\n",
"from pennylane import numpy as np\n",
"import pennylane as qml\n",
"import math"
Expand Down
23 changes: 11 additions & 12 deletions circuit_example_medium.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"outputs": [],
"source": [
"import dynex\n",
"import dynex_circuit\n",
"from dynex import dynex_circuit\n",
"from pennylane import numpy as np\n",
"import pennylane as qml"
]
Expand Down Expand Up @@ -98,7 +98,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"id": "248c2c08-935c-49a1-a81f-ca03d23e3cc2",
"metadata": {},
"outputs": [
Expand All @@ -109,17 +109,16 @@
"╭────────────┬──────────┬─────────────────┬─────────────┬───────────┬────────────────┬────────────┬─────────┬────────────────╮\n",
"│ DYNEXJOB │ QUBITS │ QUANTUM GATES │ BLOCK FEE │ ELAPSED │ WORKERS READ │ CIRCUITS │ STEPS │ GROUND STATE │\n",
"├────────────┼──────────┼─────────────────┼─────────────┼───────────┼────────────────┼────────────┼─────────┼────────────────┤\n",
"│ 29837 │ 35 │ 140 │ 0.00 │ 2.761 9445408 │ 256 │ 134839.00 │\n",
"│ 29837 │ 35 │ 140 │ 0.00 │ 3.12316635712 │ 256 │ 134839.00 │\n",
"╰────────────┴──────────┴─────────────────┴─────────────┴───────────┴────────────────┴────────────┴─────────┴────────────────╯\n",
"╭────────────┬─────────────────┬────────────┬───────┬───────────┬───────────────┬─────────────────────────────┬──────────────┬──────────╮\n",
"│ WORKER │ VERSION │ CIRCUITS │ LOC │ ENERGY │ RUNTIME │ LAST UPDATE │ STEPS │ STATUS │\n",
"├────────────┼─────────────────┼────────────┼───────┼───────────┼───────────────┼─────────────────────────────┼──────────────┼──────────┤\n",
"│ 5961..0d8f │ 2.3.5.OZM.134.W │ 9445408 │ 31 │ 134839.00 │ 41.550679938s │ 2024-08-11T19:22:19.102077Z │ 85 (33.20%) │ \u001b[1;32mRUNNING\u001b[0m │\n",
"├────────────┼─────────────────┼────────────┼───────┼───────────┼───────────────┼─────────────────────────────┼──────────────┼──────────┤\n",
"│ e574..61c0 │ 2.3.5.OZM.134.W │ 3238816 │ 31 │ 134839.00 │ 10.881285188s │ 2024-08-11T19:22:49.771473Z │ 179 (69.92%) │ \u001b[1;32mRUNNING\u001b[0m │\n",
"├────────────┼─────────────────┼────────────┼───────┼───────────┼───────────────┼─────────────────────────────┼──────────────┼──────────┤\n",
"│ 2dd3..aa6c │ 2.3.5.OZM.134.W │ 3951488 │ 31 │ 134839.00 │ 32.552733758s │ 2024-08-11T19:22:28.100025Z │ 68 (26.56%) │ \u001b[1;32mRUNNING\u001b[0m │\n",
"╰────────────┴─────────────────┴────────────┴───────┴───────────┴───────────────┴─────────────────────────────┴──────────────┴──────────╯\n"
"╭─────────────────────────────┬───────────┬────────────┬───────┬──────────┬───────────┬───────────────┬─────────┬──────────╮\n",
"│ WORKER │ VERSION │ CIRCUITS │ LOC │ ENERGY │ RUNTIME │ LAST UPDATE │ STEPS │ STATUS │\n",
"├─────────────────────────────┼───────────┼────────────┼───────┼──────────┼───────────┼───────────────┼─────────┼──────────┤\n",
"│ *** WAITING FOR WORKERS *** │ │ │ │ │ │ │ │ │\n",
"╰─────────────────────────────┴───────────┴────────────┴───────┴──────────┴───────────┴───────────────┴─────────┴──────────╯\n",
"[DYNEX] FINISHED READ AFTER 312.40 SECONDS\n",
"[DYNEX] SAMPLESET READY\n",
"Mesaure: [0.66666667 0. 0. ]\n"
]
}
],
Expand Down
4 changes: 1 addition & 3 deletions circuit_example_nbit_adder.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"outputs": [],
"source": [
"import dynex\n",
"import dynex_circuit\n",
"from dynex import dynex_circuit\n",
"from pennylane import numpy as np\n",
"import pennylane as qml"
]
Expand Down Expand Up @@ -56,8 +56,6 @@
" for j in range(len(wires)):\n",
" qml.RZ(k * np.pi / (2**j), wires=wires[j])\n",
"\n",
"#dev = qml.device('default.qubit', wires=wires)\n",
"#@qml.qnode(dev)\n",
"def FullAdder(params, state=True):\n",
" a, b = params\n",
" wires = Nqubits(a, b)\n",
Expand Down
2 changes: 1 addition & 1 deletion circuit_example_openqasm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"outputs": [],
"source": [
"import dynex\n",
"import dynex_circuit"
"from dynex import dynex_circuit"
]
},
{
Expand Down
22 changes: 11 additions & 11 deletions circuit_example_pennylane.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"outputs": [],
"source": [
"import dynex\n",
"import dynex_circuit\n",
"from dynex import dynex_circuit\n",
"from pennylane import numpy as np\n",
"import pennylane as qml"
]
Expand Down Expand Up @@ -95,7 +95,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"id": "248c2c08-935c-49a1-a81f-ca03d23e3cc2",
"metadata": {},
"outputs": [
Expand All @@ -106,16 +106,16 @@
"╭────────────┬──────────┬─────────────────┬─────────────┬───────────┬────────────────┬────────────┬─────────┬────────────────╮\n",
"│ DYNEXJOB │ QUBITS │ QUANTUM GATES │ BLOCK FEE │ ELAPSED │ WORKERS READ │ CIRCUITS │ STEPS │ GROUND STATE │\n",
"├────────────┼──────────┼─────────────────┼─────────────┼───────────┼────────────────┼────────────┼─────────┼────────────────┤\n",
"29829 │ 21 │ 58 │ 0.001.19 │ 1 │ 6125056 │ 256 │ 36242.00 │\n",
"29993 │ 21 │ 58 │ 0.020.51 │ 1 │ 1000 │ 256 │ 36242.00 │\n",
"╰────────────┴──────────┴─────────────────┴─────────────┴───────────┴────────────────┴────────────┴─────────┴────────────────╯\n",
"╭────────────┬─────────────────┬────────────┬───────┬──────────┬──────────────┬─────────────────────────────┬───────────┬──────────╮\n",
"│ WORKER │ VERSION │ CIRCUITS │ LOC │ ENERGY │ RUNTIME │ LAST UPDATE │ STEPS │ STATUS │\n",
"├────────────┼─────────────────┼────────────┼───────┼──────────┼──────────────┼─────────────────────────────┼───────────┼──────────┤\n",
"a0e0..0b27 │ 2.3.5.OZM.134.L │ 9963264 │ 0 │ 0.00 │ 24.536697341s │ 2024-08-11T19:03:42.782912Z │ 0 (0.00%) │ \u001b[1;31mSTOPPED\u001b[0m │\n",
"├────────────┼─────────────────┼────────────┼───────┼──────────┼──────────────┼─────────────────────────────┼───────────┼──────────┤\n",
"b3e3..c4b6 │ 2.3.5.OZM.134.L │ 6125056 11 │ 36242.00 │ 6.547192591s │ 2024-08-11T19:04:00.772418Z │ 0 (0.00%) │ \u001b[1;31mSTOPPED\u001b[0m │\n",
"╰────────────┴─────────────────┴────────────┴───────┴──────────┴──────────────┴─────────────────────────────┴───────────┴──────────╯\n",
"[DYNEX] FINISHED READ AFTER 119.02 SECONDS\n",
"╭────────────┬─────────────────┬────────────┬───────┬──────────┬──────────────┬─────────────────────────────┬───────────┬──────────╮\n",
"│ WORKER │ VERSION │ CIRCUITS │ LOC │ ENERGY │ RUNTIME │ LAST UPDATE │ STEPS │ STATUS │\n",
"├────────────┼─────────────────┼────────────┼───────┼──────────┼──────────────┼─────────────────────────────┼───────────┼──────────┤\n",
"150d..101f │ 2.3.5.OZM.134.L │ 1000 │ 0 │ 0.00 │ 7.963647105s │ 2024-08-12T09:32:11.340048Z │ 0 (0.00%) │ \u001b[1;31mSTOPPED\u001b[0m │\n",
"├────────────┼─────────────────┼────────────┼───────┼──────────┼──────────────┼─────────────────────────────┼───────────┼──────────┤\n",
"85cf..aded │ 2.3.5.OZM.134.L │ 1000 0 │ 0.00 │ 3.169437375s │ 2024-08-12T09:32:16.134259Z │ 0 (0.00%) │ \u001b[1;31mSTOPPED\u001b[0m │\n",
"╰────────────┴─────────────────┴────────────┴───────┴──────────┴──────────────┴─────────────────────────────┴───────────┴──────────╯\n",
"[DYNEX] FINISHED READ AFTER 51.11 SECONDS\n",
"[DYNEX] SAMPLESET READY\n",
"Mesaure: [1 0]\n"
]
Expand Down
2 changes: 1 addition & 1 deletion circuit_example_qiskit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"outputs": [],
"source": [
"import dynex\n",
"import dynex_circuit\n",
"from dynex import dynex_circuit\n",
"import qiskit\n",
"from qiskit import QuantumCircuit"
]
Expand Down
2 changes: 1 addition & 1 deletion circuit_example_shor.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"outputs": [],
"source": [
"import dynex\n",
"import dynex_circuit\n",
"from dynex import dynex_circuit\n",
"from pennylane import numpy as np\n",
"import pennylane as qml\n",
"import math\n",
Expand Down

0 comments on commit b684bdd

Please sign in to comment.