-
-
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 832ad7a
Showing
145 changed files
with
15,978 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 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
+21.8 KB
_images/08aa1ddce1471b6f51146572fdb671fa916ce487de19d5a7086c86ee90abe299.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/18da646c905ecbbabade2933b32d33141624835efe4bc3d00deb9641993228fc.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.01 KB
_images/1be99e37f13150ae81db33daa1ab2beb28fb6ea6b341a213e05f0f61f52f1d0c.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
+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
+11.4 KB
_images/300bbb194d633fd4419ee1360261f48cd7186be6801497ff0076943ab88f8156.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
+10.1 KB
_images/37afe42937c3ad9b42eae8b9bb2821891d10c2c845dd4d77462ec4486194799a.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
+16.5 KB
_images/491cb9b1407c5f41003d5da03c7ef3a35fa8acf294c42364e650599ca92ede80.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
+12.9 KB
_images/5174bb0c6ea65db88c99511f9658fc0a3c9afceb5058f8a187fa4d462337954a.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
+46.2 KB
_images/642fa811702d720260ecca7dc2f819674d1abd91223b3474a21deba2feece93f.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
+57.1 KB
_images/8a0fc387e407eb75daa9041a90ae25db872362ce53a00778a4494c6fba9bc34d.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
+9.09 KB
_images/8e1bf07bbbab0c0a595d9144710a8af6c22cf9a2661a42ccd01e899e85ffb12e.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
+45.5 KB
_images/b05e4f779a0b4670c648fd32d723f5b20c77402dfdbb9e21f6f2d293de8c4fa6.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
+22 KB
_images/b6f0d64336ffee38165e53f45cf35add927a8cc29c79a2c9d25aff12e433725d.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
+10.1 KB
_images/be3abba3958dd65682b17997972df3f803e8698846e140e95797a368e23e2236.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
+33.6 KB
_images/c7ef1f01b80363cad58e444c34d85d42122df00d7131ad1f1fec37e2b481452c.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
+25.4 KB
_images/d28a5181b658fec9e82cc2f252c108db4a88a688353724453a0e02afec2e333f.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
+54.6 KB
_images/df524085833a08132a3dad4ea42fd831e431852c4d2d86fb84e69784f7a5608e.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
+14.6 KB
_images/f3b3957c4548aaf8d56ce1f0541c259dddd1458d1a1e74443a16ae7a87e145f7.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
+163 KB
_images/fc1d93821ee269bc89af7272200aae50aed37301baea1590dd42a82a9a297029.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,16 @@ | ||
Algorithms | ||
==================================== | ||
|
||
Qlasskit implements high level representation of quantum algorithms that relies on black boxes functions and oracles. | ||
|
||
Grover search | ||
----------------- | ||
|
||
|
||
Simon periodicity | ||
---------------------- | ||
|
||
|
||
|
||
Deutsch Jozsa | ||
---------------------- |
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 |
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,75 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"# Working with big circuits" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": {}, | ||
"source": [ | ||
"Qlasskit is capable of producing large circuit without any issue. The only thing that you have to do, is to use the `fastOptimizer`, since running CSE is too slow on large expressions lists.\n", | ||
"\n", | ||
"In the next example we are going to create a quantum circuit with 64 `Qint8` in input, and one `Qint8` in output, resulting on a circuit of ~21984 qubits and ~1044 gates in around 5 seconds." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 20, | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"from qlasskit import Qint8, Qlist, boolopt, qlassfa\n", | ||
"\n", | ||
"\n", | ||
"@qlassfa(bool_optimizer=boolopt.fastOptimizer)\n", | ||
"def test(a_list: Qlist[Qint8, 64]) -> Qint8:\n", | ||
" h_val = Qint8(0)\n", | ||
" for c in a_list:\n", | ||
" h_val = h_val + c\n", | ||
" return h_val" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 21, | ||
"metadata": {}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
"output_type": "stream", | ||
"text": [ | ||
"QCircuit<test>(21984 gates, 1044 qubits)\n" | ||
] | ||
} | ||
], | ||
"source": [ | ||
"print(test.circuit())" | ||
] | ||
} | ||
], | ||
"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 | ||
} |
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.
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.
Large diffs are not rendered by default.
Oops, something went wrong.
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,53 @@ | ||
qlasskit.qcircuit.gates | ||
======================= | ||
|
||
.. automodule:: qlasskit.qcircuit.gates | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Functions | ||
|
||
.. autosummary:: | ||
|
||
apply | ||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Classes | ||
|
||
.. autosummary:: | ||
|
||
Barrier | ||
CCX | ||
CP | ||
CX | ||
H | ||
I | ||
MCX | ||
MCtrl | ||
NopGate | ||
P | ||
QControlledGate | ||
QGate | ||
S | ||
Swap | ||
T | ||
Toffoli | ||
X | ||
Y | ||
Z | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
53 changes: 53 additions & 0 deletions
53
_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,53 @@ | ||
qlasskit.qcircuit.qcircuit.QCircuit | ||
=================================== | ||
|
||
.. currentmodule:: qlasskit.qcircuit.qcircuit | ||
|
||
.. autoclass:: QCircuit | ||
|
||
|
||
.. automethod:: __init__ | ||
|
||
|
||
.. rubric:: Methods | ||
|
||
.. autosummary:: | ||
|
||
~QCircuit.__init__ | ||
~QCircuit.add_qubit | ||
~QCircuit.append | ||
~QCircuit.append_circuit | ||
~QCircuit.barrier | ||
~QCircuit.ccx | ||
~QCircuit.copy | ||
~QCircuit.cp | ||
~QCircuit.cx | ||
~QCircuit.draw | ||
~QCircuit.export | ||
~QCircuit.get_key_by_index | ||
~QCircuit.h | ||
~QCircuit.iqft | ||
~QCircuit.mctrl | ||
~QCircuit.mcx | ||
~QCircuit.qft | ||
~QCircuit.random | ||
~QCircuit.repeat | ||
~QCircuit.s | ||
~QCircuit.swap | ||
~QCircuit.t | ||
~QCircuit.x | ||
~QCircuit.y | ||
~QCircuit.z | ||
|
||
|
||
|
||
|
||
|
||
.. rubric:: Attributes | ||
|
||
.. autosummary:: | ||
|
||
~QCircuit.num_gates | ||
~QCircuit.used_qubits | ||
|
||
|
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.