Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrated quantum bayesian inference #717

Merged
merged 63 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
e632247
Added quantum Bayesian inference
xXdeveloperXx Oct 28, 2023
d1ccc0e
Allowed inference with no evidence
xXdeveloperXx Oct 28, 2023
e3c1287
Passed inference test
xXdeveloperXx Oct 28, 2023
143ef3a
Passed inference test
xXdeveloperXx Nov 1, 2023
42eb77a
Works with AmplitudeProblem algorithm
xXdeveloperXx Nov 3, 2023
cd976ba
Run GroverOperator until it matches all evidence
xXdeveloperXx Nov 4, 2023
0922e90
Quantum rejection sampling with GroverOperator
xXdeveloperXx Nov 4, 2023
72d2294
Quantum Bayesian inference
xXdeveloperXx Nov 5, 2023
adf90c0
Started QBayesian tutorial
xXdeveloperXx Nov 5, 2023
b157f6c
QBayesian tutorial + debugging order in inference()
xXdeveloperXx Nov 6, 2023
60f683d
Add best_qc and docs
xXdeveloperXx Nov 7, 2023
ec6c18c
Added Pachinko in Tut as Bayesian network
xXdeveloperXx Nov 9, 2023
ed23ab4
Bug in Pachinko game
xXdeveloperXx Nov 10, 2023
be09b49
Add Burglary Earthquake Example
xXdeveloperXx Nov 10, 2023
fc09532
Bug with 13 tut jupyter file
xXdeveloperXx Nov 10, 2023
b3fb76c
Bug fix with 13 tut jupyter file
xXdeveloperXx Nov 10, 2023
75e9da3
Bug fix example step 5 tut 13
xXdeveloperXx Nov 10, 2023
20fb732
Reversed index for quantum circuit variables
xXdeveloperXx Nov 10, 2023
20ea846
Fixed QBayesian classical qubit order for query variables
xXdeveloperXx Nov 13, 2023
59f5311
Prepared release
xXdeveloperXx Nov 13, 2023
2765b1b
Made trivial test less strict
xXdeveloperXx Nov 13, 2023
cea8b11
Fixed format errors
xXdeveloperXx Nov 15, 2023
f624c46
Updated pylint
xXdeveloperXx Nov 15, 2023
d4eeba8
Included types for dict and set for format
xXdeveloperXx Nov 15, 2023
b39e00a
Fixed spelling error from an unchanged file
xXdeveloperXx Nov 15, 2023
fad08d7
Merge branch 'main' into quantum_bayesian_inference
adekusar-drl Nov 15, 2023
56d8fcf
Fixed tutorial and code based on feedback
xXdeveloperXx Nov 24, 2023
7c19bbd
Merge remote-tracking branch 'origin/quantum_bayesian_inference' into…
xXdeveloperXx Nov 24, 2023
e3b3f3c
Fixed format
xXdeveloperXx Nov 24, 2023
c30ef64
Removed shots
xXdeveloperXx Nov 24, 2023
52cdeb0
Fixed format
xXdeveloperXx Nov 24, 2023
a85253e
Adjusted format for documentation + added format result
xXdeveloperXx Nov 26, 2023
7f516c1
Added test if converged for tutorial
xXdeveloperXx Nov 26, 2023
93265e4
Revert commit on tutorial 07
xXdeveloperXx Nov 26, 2023
1bdf2a6
Embedded tutorial images
xXdeveloperXx Nov 27, 2023
ac91d68
Fixed release note format
xXdeveloperXx Nov 27, 2023
6c9cfc6
Added images and removed base64 for images
xXdeveloperXx Nov 28, 2023
ecda1ae
Added images and removed base64 for images
xXdeveloperXx Nov 28, 2023
47d57a6
Fixed documentation QBayesian
xXdeveloperXx Dec 1, 2023
254822c
Merge branch 'main' into quantum_bayesian_inference
proeseler Dec 2, 2023
36b0aee
Merge branch 'main' into quantum_bayesian_inference
adekusar-drl Jan 8, 2024
824e232
Merge branch 'main' into quantum_bayesian_inference
woodsp-ibm Jan 8, 2024
4422800
Merge branch 'main' into quantum_bayesian_inference
woodsp-ibm Jan 8, 2024
77a2d16
Merge branch 'main' into quantum_bayesian_inference
OkuyanBoga Feb 7, 2024
5efee9f
Added Copyright 2024
xXdeveloperXx Feb 16, 2024
5c62bf1
Merge remote-tracking branch 'origin/quantum_bayesian_inference' into…
xXdeveloperXx Feb 16, 2024
783241c
Merge branch 'main' into quantum_bayesian_inference
woodsp-ibm Feb 19, 2024
77ef4ed
Update qiskit_machine_learning/algorithms/__init__.py
woodsp-ibm Feb 19, 2024
abacd1d
Merge branch 'main' into quantum_bayesian_inference
OkuyanBoga Feb 27, 2024
31e5d5c
Merge branch 'main' into quantum_bayesian_inference
adekusar-drl Feb 29, 2024
e5eb616
Merge branch 'main' into quantum_bayesian_inference
adekusar-drl Mar 1, 2024
e7977d7
Update releasenotes/notes/add-quantum-bayesian-inference-92c6025432d9…
edoaltamura Mar 7, 2024
eab8e7c
Update releasenotes/notes/add-quantum-bayesian-inference-92c6025432d9…
edoaltamura Mar 7, 2024
551f3db
Update qiskit_machine_learning/algorithms/inference/qbayesian.py
edoaltamura Mar 7, 2024
4514da8
Added tests for getter and setter
xXdeveloperXx Mar 9, 2024
4db7272
Rerun notebook for |: 'ABCMeta' and 'NoneType'
xXdeveloperXx Mar 9, 2024
4f7ac0b
Added default sampler parameter
xXdeveloperXx Mar 15, 2024
21989fb
Fixed format error release note
xXdeveloperXx Mar 15, 2024
a7bbd3e
Removed mutable object as a default parameter
xXdeveloperXx Mar 15, 2024
cb6008a
Fixed TypeError
xXdeveloperXx Mar 15, 2024
0feb7d3
Merge branch 'main' into quantum_bayesian_inference
woodsp-ibm May 2, 2024
ac976bf
Merge branch 'main' into quantum_bayesian_inference
woodsp-ibm May 10, 2024
42594d2
Merge branch 'main' into quantum_bayesian_inference
woodsp-ibm May 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .pylintdict
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
acyclic
adam
adjoint
aer
Expand All @@ -18,13 +19,17 @@ autosummary
backend
backends
backpropagation
bayes
bayesian
benchmarking
bergholm
bitstring
bitstrings
bivariate
bloch
bool
boolean
borujeni
cargs
carlo
cbit
Expand Down Expand Up @@ -83,15 +88,19 @@ farrokh
fidelities
fidelityquantumkernel
formatter
frac
frontend
func
gambetta
gaussian
gellmann
getter
gpu
grover
guang
guzik
hamiltonian
hao
hashable
havlíček
hilbert
Expand All @@ -106,6 +115,8 @@ inlier
inplace
instantiation
instantiations
interdependencies
isaac
isometry
iten
iterable
Expand All @@ -124,6 +135,7 @@ langle
lukin
macos
makefile
mary
matmul
matplotlib
maxiter
Expand All @@ -141,6 +153,7 @@ multioutput
mxd
mypy
nat
nbsphinx
ndarray
nielsen
nn
Expand Down Expand Up @@ -191,6 +204,9 @@ qae
qarg
qargs
qasm
qb
qbayesian
qbi
qc
qgan
qgans
Expand All @@ -205,6 +221,7 @@ qubits
rangle
rbf
readme
recalibration
regressor
regressors
regs
Expand All @@ -226,6 +243,7 @@ shalev
shende
shwartz
sigmoid
sima
sklearn
softmax
sparsearray
Expand All @@ -235,6 +253,7 @@ stdlib
stdlib
stdout
str
subclasses
subcircuits
submodules
subobjects
Expand All @@ -248,6 +267,7 @@ temme
tensored
terra
th
theodore
toctree
todo
traceback
Expand Down Expand Up @@ -280,6 +300,7 @@ vz
wikipedia
williams
wrt
yoder
zoufal
zsh
θ
Binary file added docs/images/Burglary_Alarm.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 docs/images/Two_Node_Bayesian_Network.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
747 changes: 747 additions & 0 deletions docs/tutorials/13_quantum_bayesian_inference.ipynb

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion qiskit_machine_learning/algorithms/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This code is part of a Qiskit project.
#
# (C) Copyright IBM 2021, 2023.
# (C) Copyright IBM 2021, 2024.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
Expand Down Expand Up @@ -56,6 +56,16 @@
NeuralNetworkClassifier
VQC

Inference
+++++++++++
Algorithms for inference.

.. autosummary::
:toctree: ../stubs/
:nosignatures:

QBayesian

Regressors
++++++++++
Algorithms for data regression.
Expand All @@ -78,6 +88,7 @@
OneHotObjectiveFunction,
)
from .classifiers import QSVC, PegasosQSVC, VQC, NeuralNetworkClassifier
from .inference import QBayesian
from .regressors import QSVR, VQR, NeuralNetworkRegressor

__all__ = [
Expand All @@ -94,4 +105,5 @@
"QSVR",
"NeuralNetworkRegressor",
"VQR",
"QBayesian",
]
18 changes: 18 additions & 0 deletions qiskit_machine_learning/algorithms/inference/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This code is part of a Qiskit project.
#
# (C) Copyright IBM 2023, 2024.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

""" Inference Package """


from .qbayesian import QBayesian

__all__ = ["QBayesian"]
Loading
Loading