Skip to content

Commit

Permalink
deploy: 7334e28
Browse files Browse the repository at this point in the history
  • Loading branch information
dakk committed Jan 16, 2024
0 parents commit e782569
Show file tree
Hide file tree
Showing 145 changed files with 15,919 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .buildinfo
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 added .doctrees/algorithms.doctree
Binary file not shown.
Binary file added .doctrees/api.doctree
Binary file not shown.
Binary file added .doctrees/environment.pickle
Binary file not shown.
Binary file added .doctrees/example_big_circuit.doctree
Binary file not shown.
Binary file added .doctrees/example_deutsch_jozsa.doctree
Binary file not shown.
Binary file added .doctrees/example_grover.doctree
Binary file not shown.
Binary file added .doctrees/example_grover_factors.doctree
Binary file not shown.
Binary file added .doctrees/example_grover_hash.doctree
Binary file not shown.
Binary file added .doctrees/example_grover_subset.doctree
Binary file not shown.
Binary file added .doctrees/example_grover_sudoku.doctree
Binary file not shown.
Binary file added .doctrees/example_simon.doctree
Binary file not shown.
Binary file added .doctrees/example_unitary_of_f.doctree
Binary file not shown.
Binary file added .doctrees/exporter.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.
Binary file not shown.
Binary file added .doctrees/how_it_works.doctree
Binary file not shown.
Binary file added .doctrees/index.doctree
Binary file not shown.
Binary file added .doctrees/quickstart.doctree
Binary file not shown.
Binary file added .doctrees/supported.doctree
Binary file not shown.
Empty file added .nojekyll
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions _sources/algorithms.rst.txt
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
----------------------
15 changes: 15 additions & 0 deletions _sources/api.rst.txt
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
74 changes: 74 additions & 0 deletions _sources/example_big_circuit.ipynb.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"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",
"@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
}
131 changes: 131 additions & 0 deletions _sources/example_deutsch_jozsa.ipynb.txt

Large diffs are not rendered by default.

167 changes: 167 additions & 0 deletions _sources/example_grover.ipynb.txt

Large diffs are not rendered by default.

104 changes: 104 additions & 0 deletions _sources/example_grover_factors.ipynb.txt

Large diffs are not rendered by default.

194 changes: 194 additions & 0 deletions _sources/example_grover_hash.ipynb.txt

Large diffs are not rendered by default.

109 changes: 109 additions & 0 deletions _sources/example_grover_subset.ipynb.txt

Large diffs are not rendered by default.

141 changes: 141 additions & 0 deletions _sources/example_grover_sudoku.ipynb.txt

Large diffs are not rendered by default.

131 changes: 131 additions & 0 deletions _sources/example_simon.ipynb.txt

Large diffs are not rendered by default.

120 changes: 120 additions & 0 deletions _sources/example_unitary_of_f.ipynb.txt

Large diffs are not rendered by default.

226 changes: 226 additions & 0 deletions _sources/exporter.ipynb.txt

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions _sources/generated/qlasskit.algorithms.grover.Grover.rst.txt
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


41 changes: 41 additions & 0 deletions _sources/generated/qlasskit.algorithms.qalgorithm.rst.txt
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





53 changes: 53 additions & 0 deletions _sources/generated/qlasskit.qcircuit.gates.rst.txt
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 _sources/generated/qlasskit.qcircuit.qcircuit.QCircuit.rst.txt
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


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


Loading

0 comments on commit e782569

Please sign in to comment.