-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0ae3481
Showing
120 changed files
with
13,905 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 1b90b7a87d83483e91aa630c474b09cf | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+22.7 KB
.doctrees/generated/qlasskit.qcircuit.qcircuitwrapper.QCircuitWrapper.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file added
BIN
+12.4 KB
_images/27a749800d923fb69b5d38e7722422621f8acf4ee5c2b6f517f89d74a936444a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.8 KB
_images/293285b423513d39c4a73e871f2211a526039c0ce9d988d5f7d9abe704adabc2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.89 KB
_images/44c9a3aa43eda23fe096518b175fdade8ee74a3e2c36a0a34f565ca369046c0b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21.6 KB
_images/6f943927f4e7f022046baf725bd97d0234b6d284f35b8a8d70abbd49ae18d2e5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+55.7 KB
_images/7a0f3cedf6e4a1650b16511d1682a30006e6d7c7a06a8f5c9c6bb427bb630934.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+40.7 KB
_images/99d44c6d50f9b254ae7c579012cd8627b241c498203712ce1fa7b4c31181df4d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.9 KB
_images/bb602c4172678c017a5af45866c85d482b8102b2ff0882f9016d844672451041.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11 KB
_images/beafab15f915183b637909d537345580eba0f3a7fb66329311dd39909074d252.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+17.8 KB
_images/c11daf869c135eac3524304f0b40bd3d1ae514f73d769f0de4a9d577f9da51ba.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23 KB
_images/d19805380f7379838dd2610658b919af97837aa5f3ca65e2ac7eecb6b323453f.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+61.1 KB
_images/e3c3e1af20988afbd97c6296fc6554b3f8fe2c6a40f0e173027e03f2e4b29075.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+52.9 KB
_images/ea41932c680a118cee625c379616f3eb2bc1845c772fc3b4c9431f50c80e16ed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.01 KB
_images/f988cf8271837cb1b9caf21c4d307e4857aa36b6b8b9f774cf372dec22e57051.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Algorithms | ||
==================================== | ||
|
||
|
||
Grover search | ||
----------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
API | ||
=== | ||
|
||
.. autosummary:: | ||
:toctree: generated | ||
:recursive: | ||
|
||
qlasskit.qlassfun.qlassf | ||
qlasskit.qlassfun.qlassfa | ||
qlasskit.qlassfun.QlassF | ||
qlasskit.algorithms.qalgorithm | ||
qlasskit.algorithms.grover.Grover | ||
qlasskit.qcircuit.qcircuit.QCircuit | ||
qlasskit.qcircuit.qcircuitwrapper.QCircuitWrapper | ||
qlasskit.qcircuit.gates |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Unitary of qlasskit function" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 19, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"\n", | ||
"QlassF<f>(a:bool, b:bool) -> bool:\n", | ||
"\t_ret = a ^ ~b\n", | ||
"\n" | ||
] | ||
}, | ||
{ | ||
"data": { | ||
"image/png": "iVBORw0KGgoAAAANSUhEUgAAATEAAAEvCAYAAAAtufaDAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjguMCwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy81sbWrAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAbfElEQVR4nO3de3RU5b3/8feeBHKPEAIN5AIECIRb8CRSw6lCqBcoolK1aim1/vits6xaspYcYi/LRbu6Vike1FP0tIWKP6tdYlqLlhI5ehQ8RkQNN0tN5B7MbdCRQEhIIJnZvz9GkEgCyWRuz+TzWmtWYPbl+e4k88mzn/3MHsu2bRsREUM5Ql2AiEhfKMRExGgKMRExmkJMRIymEBMRoynERMRoCjERMZpCTESMphATEaMpxETEaAoxETGaQkxEjKYQExGjKcRExGgKMRExmkJMRIymEBMRoynERMRoCjERMZpCTESMphATEaMpxETEaAoxETGaQkxEjKYQExGjKcRExGgKMRExmkJMRIymEBMRoynERMRoCjERMZpCTESMphATEaMpxETEaAoxETGaQkxEjKYQExGjKcRExGgKMRExmkJMRIymEBMRoynERMRoCjERMZpCTESMphATEaMpxETEaAoxETGaQkxEjKYQExGjKcRExGgKMRExmkJMRIzWL0LM5XJRUlLC2LFjiY2NJTMzk+LiYlpaWli8eDGWZfHUU0+FusyA63BDyxnvV5FIER3qAgJtz549zJ07F6fTSUJCAhMnTqS+vp7Vq1dz6NAhjh8/DsC0adNCW2iAtLthz1F45wAcdX35/MhU+MY4mDYSBkSFrj6RvrJs27ZDXUSguFwurrzySmpra1m6dCnLly8nKSkJgEcffZSHH36Y6Oho3G43J06cIDk5OcQV+1fDCVj7FjS2dL/O4AT4t1kwfFBwahLxt4gOse9+97usX7+eBx98kCeffPKi5dOmTePDDz9k9OjRHD58OAQVBs6nTfCb172nj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oKCA6Oprdu3czebL/ejpP/nEDp5pb+7AHm1Mtrdi2TWzMQAaGKEhFAiUpMY4f3fNtn7ZVT+wLr7zyCgDz5s3za4ABnGpupam5xS/7ajtzlrYzZ/2yL5FIoBD7QmVlJQCFhYV+33dSYlwftlYvTCJfX14jCrEvNDU1AXDFFVf4fd++dpMB3t9TxcuvlZOUGE/Jv93FgAH6kYlcSK+ILyQnJwPe+3r5m+9jYt5eGEB7ewf/sbbUv4WJhAmNifnBpEmT2LBhA9u3b/f7vv0xJqaxMJGuKcS+sGDBAn75y1/y6quvUllZycSJE/22b9/O9zUWJv1HX8bENMXiAnfeeSd//vOfycrK4rnnnmPmzJnnlx07doxnnnmGJUuWkJCQEPBaNBYm0jMKsQs0NTVxyy238NZbbwGQnp7OiBEjaGhooK6uLmgz9jvcblatLeVEU7Nm54tcht47eYHk5GTeeOMN1q1bx6xZszh9+jQffvghDoeDG2+8kXXr1pGUlBTwOnbu3c+JpmbNzhfpAfXEwtDujw6w+a0PmPn1PPXCRC5DIRam2js6sLCIjo4KdSkiYU0hJiJG05iYiBhNISYiRlOIiYjRFGIiYjSFmIgYTSEmIkZTiImI0RRiImI0hZiIGE0hJiJGU4iJiNEUYiJiNIWYiBhNISYiRlOIiYjRFGIiYjSFmIgYTSEmIkZTiImI0RRiImI0hZiIGE0hJiJGU4iJiNEUYiJiNIWYiBhNISYiRlOIiYjRFGIiYjSFmIgYTSEmIkZTiImI0RRiImI0hZiIGE0hJiJGU4iJiNEUYiJiNIWYiBhNISYiRlOIiYjR/j8N3ztAInu47AAAAABJRU5ErkJggg==", | ||
"text/plain": [ | ||
"<Figure size 371.107x367.889 with 1 Axes>" | ||
] | ||
}, | ||
"execution_count": 19, | ||
"metadata": {}, | ||
"output_type": "execute_result" | ||
} | ||
], | ||
"source": [ | ||
"from qiskit import Aer, QuantumCircuit, transpile, execute\n", | ||
"from qiskit.visualization import array_to_latex\n", | ||
"from qlasskit import qlassf\n", | ||
"\n", | ||
"@qlassf\n", | ||
"def f(a: bool, b: bool) -> bool:\n", | ||
" return a ^ (not b)\n", | ||
"\n", | ||
"print(f\"\\n{f}\\n\")\n", | ||
"\n", | ||
"qc = QuantumCircuit(f.num_qubits, f.num_qubits)\n", | ||
"qc.append(f.gate(), f.qubits)\n", | ||
"\n", | ||
"qc.decompose().draw('mpl')\n" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 20, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"data": { | ||
"text/latex": [ | ||
"$$\n", | ||
"\n", | ||
"\\begin{bmatrix}\n", | ||
"0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 \\\\\n", | ||
" 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 \\\\\n", | ||
" 0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 \\\\\n", | ||
" 0 & 0 & 0 & 0 & 0 & 0 & 0 & 1 \\\\\n", | ||
" 1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\\\\n", | ||
" 0 & 0 & 0 & 0 & 0 & 1 & 0 & 0 \\\\\n", | ||
" 0 & 0 & 0 & 0 & 0 & 0 & 1 & 0 \\\\\n", | ||
" 0 & 0 & 0 & 1 & 0 & 0 & 0 & 0 \\\\\n", | ||
" \\end{bmatrix}\n", | ||
"$$" | ||
], | ||
"text/plain": [ | ||
"<IPython.core.display.Latex object>" | ||
] | ||
}, | ||
"execution_count": 20, | ||
"metadata": {}, | ||
"output_type": "execute_result" | ||
} | ||
], | ||
"source": [ | ||
"simulator = Aer.get_backend('unitary_simulator')\n", | ||
"job = execute(qc, simulator, shots=8192)\n", | ||
"result = job.result()\n", | ||
"array_to_latex(result.get_unitary(qc,3), max_size=16)\n" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "qlasskit_310-env", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.10.13" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 2 | ||
} |
40 changes: 40 additions & 0 deletions
40
_sources/generated/qlasskit.algorithms.grover.Grover.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
qlasskit.algorithms.grover.Grover | ||
================================= | ||
|
||
.. currentmodule:: qlasskit.algorithms.grover | ||
|
||
.. autoclass:: Grover | ||
|
||
|
||
.. automethod:: __init__ | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
|
||
~Grover.__init__ | ||
~Grover.circuit | ||
~Grover.decode_counts | ||
~Grover.decode_output | ||
~Grover.draw | ||
~Grover.encode_input | ||
~Grover.export | ||
~Grover.gate | ||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~Grover.input_qubits | ||
~Grover.input_size | ||
~Grover.num_qubits | ||
~Grover.output_qubits | ||
~Grover.output_size | ||
~Grover.qubits | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
qlasskit.algorithms.qalgorithm | ||
============================== | ||
|
||
.. automodule:: qlasskit.algorithms.qalgorithm | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Functions | ||
|
||
.. autosummary:: | ||
|
||
oraclize | ||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Classes | ||
|
||
.. autosummary:: | ||
|
||
QAlgorithm | ||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Exceptions | ||
|
||
.. autosummary:: | ||
|
||
ConstantOracleException | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
qlasskit.qcircuit.gates | ||
======================= | ||
|
||
.. automodule:: qlasskit.qcircuit.gates | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Functions | ||
|
||
.. autosummary:: | ||
|
||
apply | ||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Classes | ||
|
||
.. autosummary:: | ||
|
||
Barrier | ||
CCX | ||
CX | ||
H | ||
MCX | ||
MCtrl | ||
NopGate | ||
QControlledGate | ||
QGate | ||
S | ||
T | ||
Toffoli | ||
X | ||
Y | ||
Z | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
45 changes: 45 additions & 0 deletions
45
_sources/generated/qlasskit.qcircuit.qcircuit.QCircuit.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
qlasskit.qcircuit.qcircuit.QCircuit | ||
=================================== | ||
|
||
.. currentmodule:: qlasskit.qcircuit.qcircuit | ||
|
||
.. autoclass:: QCircuit | ||
|
||
|
||
.. automethod:: __init__ | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
|
||
~QCircuit.__init__ | ||
~QCircuit.add_qubit | ||
~QCircuit.append | ||
~QCircuit.barrier | ||
~QCircuit.ccx | ||
~QCircuit.copy | ||
~QCircuit.cx | ||
~QCircuit.draw | ||
~QCircuit.export | ||
~QCircuit.get_key_by_index | ||
~QCircuit.h | ||
~QCircuit.mctrl | ||
~QCircuit.mcx | ||
~QCircuit.s | ||
~QCircuit.t | ||
~QCircuit.x | ||
~QCircuit.y | ||
~QCircuit.z | ||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~QCircuit.num_gates | ||
|
||
|
40 changes: 40 additions & 0 deletions
40
_sources/generated/qlasskit.qcircuit.qcircuitwrapper.QCircuitWrapper.rst.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
qlasskit.qcircuit.qcircuitwrapper.QCircuitWrapper | ||
================================================= | ||
|
||
.. currentmodule:: qlasskit.qcircuit.qcircuitwrapper | ||
|
||
.. autoclass:: QCircuitWrapper | ||
|
||
|
||
.. automethod:: __init__ | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
|
||
~QCircuitWrapper.__init__ | ||
~QCircuitWrapper.circuit | ||
~QCircuitWrapper.decode_counts | ||
~QCircuitWrapper.decode_output | ||
~QCircuitWrapper.draw | ||
~QCircuitWrapper.encode_input | ||
~QCircuitWrapper.export | ||
~QCircuitWrapper.gate | ||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~QCircuitWrapper.input_qubits | ||
~QCircuitWrapper.input_size | ||
~QCircuitWrapper.num_qubits | ||
~QCircuitWrapper.output_qubits | ||
~QCircuitWrapper.output_size | ||
~QCircuitWrapper.qubits | ||
|
||
|
Oops, something went wrong.