Skip to content

Commit

Permalink
updated from main
Browse files Browse the repository at this point in the history
  • Loading branch information
gonfeco committed Jul 9, 2024
2 parents fc9e816 + 883713d commit 813b51b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ doc/build
# Packaging
dist/*
*.egg-info
build/*

# Testing
.coverage
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def setup(app):
#
# The short X.Y version.

version = "0.4.0"
version = "0.4.1"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
Binary file added doc/img/inferential_circuit.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion doc/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ After the building process has finished, you will find the ``dist`` directory wi

.. code::
pip install neasqc-qrbs
pip install .\neasqc-qrbs-0.4.0.tar.gz
Once the installation process is done, you have finished!
7 changes: 7 additions & 0 deletions doc/modules.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
neasqc_qrbs
===========

.. toctree::
:maxdepth: 4

neasqc_qrbs
4 changes: 3 additions & 1 deletion neasqc_qrbs/qrbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from abc import ABC, abstractmethod

import numpy as np

from .knowledge_rep import BuilderBayes, BuilderFuzzy, BuilderImpl, Fact, Rule, KnowledgeIsland
from qat.lang.AQASM import Program
try:
Expand Down Expand Up @@ -339,5 +341,5 @@ def execute(qrbs, islands=None, model='cf') -> None:
for sample in result:
if sample.state.bitstring[index] == '1':
temp += sample.probability
element.precision = temp
element.precision = 2*np.arcsin(np.sqrt(temp)) / np.pi

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def run_tests(self):

setup(
name="neasqc-qrbs",
version="0.4.0",
version="0.4.1",
author="Samuel Magaz-Romero",
author_email="[email protected]",
license="European Union Public License 1.2",
Expand Down

0 comments on commit 813b51b

Please sign in to comment.