Saravanan666/pypi-org huggingface dataset:
Package: qasdadp
QASDAD, the quick and simple data analysis and documentation program.QASDAD is intended to speed up and simplify the process of analysing the data of
physical experiments and documenting it and make that process less error prone.
You can find examples that are intended to show the capabilities of QASDAD in the "examples" directory.
You can find a german tutorial in the "german tutorial" directory.
You can find the documentation in the "docu" directory.
"docu/latex/refman.pdf" is the documentation in pdf-format.
You should note that QASDAD is still under development, super buggy and not
feature complete, but feel free to contact me for bug reports and feature
requests atvolker.weissmann@gmx.de.
The public API is not stable
yet, so feel free to propose API changes.QASDAD is written by Volker Weißmann, a German physics student at the University
of Stuttgart.
For licensing issues, bug reports, feature requests etc.
contact me atvolker.weissmann@gmx.de.
This program is free software (free as in freedom)
and you can find the full license of this program in LICENSE.TXT
The direct dependencies of QASDAD arePython 3 (https://www.python.org, not included, needs to be installed separately)Scipy (https://www.scipy.org, not included, needs to be installed separately)Numpy (http://www.numpy.org, not included, needs to be installed separately)Matplotlib (https://matplotlib.org/, not included, needs to be installed separately)Sympy (https://www.sympy.org, not included, needs to be installed separately)latex2sympy (https://gitlab.com/volkerweissmann/latex2sympy, not included, needs to be installed separately)You can also install QASDAD using python3 -m pip install qasdadpGood Luck.QASDAD, the quick and simple data analysis and documentation program
Copyright (C) 2018 Volker Weißmann . Contact:volker.weissmann@gmx.deThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.You should have received a copy of the GNU Affero General Public License
along with this program.  If not, seehttps://www.gnu.org/licenses/.
Package: qase-robotframework
Qase Robot Framework ListenerPublish results simple and easy.How to integratepip install qase-robotframeworkUsageIf you want to create a persistent link to Test Cases in Qase, you should add Qase test case IDs to robot framework tests.
They should be added as a tags in form likeQ-<case id without project code>. You can use upper and lower case to indicate the test case IDs. Example:*** Test Cases ***Push button[Tags]q-2Push button1Result should be1Push multiple buttons[Tags]Q-3Push button1Push button2Result should be12*** Test Cases ***ExpressionExpectedAddition12 + 2 + 2162 + -3-1[Tags]Q-7Subtraction12 - 2 - 282 - -35[Tags]Q-8Working with stepsListener supports reporting steps results:Example:Quick Get A JSON Body Test## Test case: "Quick Get A JSON Body Test"[Tags]Q-3${response}=GEThttps://jsonplaceholder.typicode.com/posts/1## 1-st step - "GET"Should Be Equal As Strings1${response.json()}[id]## 2-nd step - "Should Be Equal As Strings"Initializing the test case## Test case: "Initializing the test case"[Tags]q-4Set To Dictionary${info}field1=A sample string## 1-st step - "Set To Dictionary"ConfigurationListener supports loading configuration both from environment variables and fromtox.inifile.ENV variables:QASE_MODE- Define mode:testopsto enable reportQASE_ENVIRONMENT- Environment ID for the runQASE_DEBUG- If passed something - will enable debug logging for listener. Default:FalseQASE_TESTOPS_MODE- You can switch betweensyncandasyncmodes. Default isasyncQASE_TESTOPS_API_TOKEN- API token to access Qase TestOpsQASE_TESTOPS_PROJECT- Project code from Qase TestOpsQASE_TESTOPS_PLAN_ID- Plan ID if you want to add results to existing run from Test PlanQASE_TESTOPS_RUN_ID- Run ID if you want to add results to existing runQASE_TESTOPS_RUN_TITLE- Set custom run name when no run ID is providedQASE_TESTOPS_COMPLETE_RUN- Will complete run after all tests are finished. Default:FalseQASE_TESTOPS_HOST- Define a host for Qase TestOps. Default:qase.ioUsage:QASE_API_TOKEN=<API TOKEN> QASE_PROJECT=PRJCODE robot --listener qaseio.robotframework.QaseListener keyword_driven.robot data_driven.robotMoving variables totox.ini, example configuration:[qase]qase_testops_api_token=api_keyqase_testops_project=project_codeqase_testops_run_id=run_idqase_testops_run_title=New Robot Framework Runqase_debug=Trueqase_testops_complete_run=TrueExecution:robot --listener qaseio.robotframework.Listener someTest.robotContributionInstall project locally:python3-mvenv.venvsource.venv/bin/activate
pipinstall-e.[testing]Install dev requirements:pipinstallpre-commit
pre-commitinstallTest project:tox
Package: qase-xctest
Qase XCTest UtilsHow to installpip install qase-xctestHow to useFor XCode--api_token YOUR_API_TOKEN- Api token for qase api. Get api tokenhere.--project_code YOUR_PROJECT_CODE- You can find project codehere.--build $BUILD_ROOT- Xcode build folder. Xcode setup$BUILD_ROOTenviroment automatically.
Always using this enviroment for--buildarg.--run_name From_Xcode- Arbitrary run name. You can detect your run result from all results.--upload_attachments- Send attachments from report.qasexcode--build$BUILD_ROOT\--api_tokenYOUR_API_TOKEN\--project_codeYOUR_PROJECT_CODE\--run_nameFrom_Xcode\--upload_attachmentsFor CI--xcresults- Paths to reports. If your reports will be contains one test result multiple times, enable settingsAllow to add results for cases in closed runs.in your project.qasexcode --xcresults PathToReport/1.xcresult PathToReport/2.xcresult \
  --api_token YOUR_API_TOKEN \
  --project_code YOUR_PROJECT_CODE \
  --run_name From_ci \
  --upload_attachments
Package: qasm2image
The qasm2image repository provides functions to represent quantum circuits written following theOpenQASMspecification.InstallationDependenciesThe tool and all the dependencies are available via the PIP tool. See the installation instructions below.Installation procedurepip3installcffipip3installqasm2imageUsageIn a Python environnement# Import the functionsfromqasm2imageimportqasm2svgfromqasm2imageimportqasm2png# Generate your QASM string (either read from a file or generate a circuit and ask for its QASM).qasm_str="..."# Define the basis used to represent the circuitbasis='u1,u2,u3,U,cx'# Compute the SVG representationsvg_str=qasm2svg(qasm_str,basis=basis,show_clbits=True)# Compute the PNG representationpng_bytes=qasm2png(qasm_str,basis=basis,show_clbits=True)# Types of the outputsasserttype(svg_str)isstrasserttype(png_bytes)isbytes# Write the result into fileswithopen('circuit.svg','w')assvg_file:svg_file.write(svg_str)# Don't forget to write in *binary* mode for PNGwithopen('circuit.png','wb')aspng_file:png_file.write(png_bytes)In a shell environnementA script is provided to change QASM code directly from the command line.$qasm2image-husage:qasm2image[-h][-bBASIS][--hide-clbits][-sSCALE]input_fileoutput_fileTransformaquantumcircuitinQASMformattoanimageformat.positionalarguments:input_filetheQASMfileimplementingthecircuittotransformoutput_filetheimagefilethatwillbegeneratedbythetooloptionalarguments:-h,--helpshowthishelpmessageandexit-bBASIS,--basisBASISacomma-separatedlistofgatenameswhichrepresentthegatebasisinwhichthecircuitwillbedecomposed--hide-clbitsifpresent,classicalbitswillnotberepresented-sSCALE,--scaleSCALEscaleofthePNGimage.SVGoutputisnotaffectedbythisparameterLicenseThis project is distributed under theCeCILL-Blicense. A copy of the whole license is included
in the repository.In order to use the work in this repository you have a strong obligation to cite (as stated in the license):The author of the work: Adrien Suau (see on my GitHub page ormail meif any doubt).The CERFACS (Centre Européen de Recherche et de Formation Avancée en Calcul Scientifique).Outputadder.qasmqft.qasminverseqft1.qasminverseqft2.qasmqec.qasmThe same QASM code, but with thehide-clbitsoption set:qasm2image--hide-clbitsqec.{qasm,png}.teleportv2.qasm
Package: qastutil
qastutilAuthor: Dr Jie Zheng
v1.0 2023RIntroductionSome quick astronomical functions.Functionsdec2dms: transfer decimal to sexagesimal deg-min-sec, for Decdec2hms: transfer decimal to sexagesimal hour-min-sec, for RAdms2dec: transfer sexagesimal deg-min-sec to decimal, for Dechms2dec: transfer sexagesimal hour-min-sec to decimal, for RAcoorddec2dms: transfer astropy.coord.dec to deg-min-seccoordra2hms: transfer astropy.coord.ra to hour-min-sechour2str: transfer decimal hour to hour-min-sechourangle: computer hour angle between lst and raangle_dis: distance between two angles, result between -180 and +180distance: distance between two sphere pointsazalt: az & alt for object (ra, dec) at lat, lstmjd: from y, m, d, h, s, s, tz to mjdday_of_year: day serial number in given yearfmst: fast midnight sidereal timemjd2: from y, m, d, h, s, s, tz to mjdnight_len: n of hours from sunset to sunrisenight_time: sunset and sunrise for given yr, mn, dy, lon, lat, tzmjd_of_night: get 4-digit mjd code for the site, using local 18:00mjd2hour: Extract hour part from mjdsun_action: Get time of sun pass specified altitude, in this nightairmass: airmass from lat, lst, ra, declst: get local sidereal time for longitude at mjd, no astropysun_pos: sun position of given mjdmoon_pos: moon position of given mjdmoon_phase: moon phase of given mjd, by sun-earth-moon anglemoon_phase2: moon phase by moon cycle
Package: qasymphony-qtest-library
Python QTest LibraryA client library to interact with the qTest API, which one can reference here:api.qasymphony.comInstallationpipinstallqasymphony-qtest-libraryUsagefromqtestimportqtestqtest=qtest.QTestClient(username="username@yourco.com",password="password",site_name="yourco")all_projects=qtest.get_projects()project_names=[project['name']forprojectinall_projects]print(project_names)
Package: qasync
qasyncIntroductionqasyncallows coroutines to be used in PyQt/PySide applications by providing an implementation of thePEP 3156event loop.Withqasync, you can useasynciofunctionalities directly inside Qt app's event loop, in the main thread. Using async functions for Python tasks can be much easier and cleaner than usingthreading.ThreadorQThread.If you need some CPU-intensive tasks to be executed in parallel,qasyncalso got that covered, providingQEventLoop.run_in_executorwhich is functionally identical to that ofasyncio.Basic ExampleimportsysimportasynciofromqasyncimportQEventLoop,QApplicationfromPySide6.QtWidgetsimportQWidget,QVBoxLayoutclassMainWindow(QWidget):def__init__(self):super().__init__()self.setLayout(QVBoxLayout())self.lbl_status=QLabel("Idle",self)self.layout().addWidget(self.lbl_status)@asyncCloseasyncdefcloseEvent(self,event):pass@asyncSlot()asyncdefonMyEvent(self):passif__name__=="__main__":app=QApplication(sys.argv)event_loop=QEventLoop(app)asyncio.set_event_loop(event_loop)app_close_event=asyncio.Event()app.aboutToQuit.connect(app_close_event.set)main_window=MainWindow()main_window.show()withevent_loop:event_loop.run_until_complete(app_close_event.wait())More detailed examples can be foundhere.The Future ofqasyncqasyncis a fork ofasyncqt, which is a fork ofquamash.qasyncwas created because those are no longer maintained. May it live longer than its predecessors.qasyncwill continue to be maintained, and will still be accepting pull requests.RequirementsPython >= 3.8PyQt5/PyQt6 or PySide2/PySide6qasyncis tested on Ubuntu, Windows and MacOS.If you need Python 3.6 or 3.7 support, use thev0.25.0tag/release.InstallationTo installqasync, usepip:pip install qasyncLicenseYou may use, modify and redistribute this software under the terms of theBSD License. SeeLICENSE.
Package: qat
Qat (Qt Application Tester)Qat is a testing framework for Qt-based applications.Qat provides a Python API to interact with any existing Qt application by accessing QML/QtQuick/QWidget elements and simulating user manipulations.It is also integrated tobehaveto support Behavior-Driven Development (BDD) with theGherkin language.Although Qat uses the GUI to interact with the tested application, it is oriented towards BDD and functional testing rather than pure UI or non-regression testing.The main objective of Qat is to provide quick feedback to developers and easy integration to build systems.The complete documentation is available onreadthedocsand on Qat'sGitlab project.
Package: qat-comm
Module qat-commThis moduleqat-commis part ofmyQLMproject. myQLM is a quantum
software stack for writing, simulating, optimizing, and executing quantum programs. This module
provides all the data-structures needed bymyQLMPrerequisitesThis version of myQLM works on both Windows, macOS and Linux for different versions of Python 3. Please look at thecompatibility matrixto ensure myQLM is installable on your computer.This module can be installed by typing the following command:pip install myqlmLicensemyQLM EULA
Package: qat-core
Module qat-coreThis moduleqat-coreis part ofmyQLMproject. myQLM is a quantum
software stack for writing, simulating, optimizing, and executing quantum programs. This module is the
core ofmyQLMPrerequisitesThis version of myQLM works on both Windows, macOS and Linux for different versions of Python 3. Please look at thecompatibility matrixto ensure myQLM is installable on your computer.This module can be installed by typing the following command:pip install myqlmLicensemyQLM EULA
Package: qat-devices
Module qat-devicesThis moduleqat-devicesis part ofmyQLMproject. myQLM is a quantum
software stack for writing, simulating, optimizing, and executing quantum programs.This module provides a set of predefined HardwareSpecs objects corresponding to existing or common topologies.PrerequisitesThis version of myQLM works on both Windows, macOS and Linux for different versions of Python 3. Please look at thecompatibility matrixto ensure myQLM is installable on your computer.This module can be installed by typing the following command:pip install myqlmLicensemyQLM EULA
Package: qatestlink
qatestlink XMLRPC manager for TestlinkBranchLinux DeployWindows DeploymasterPython tested versions3.73.63.53.4>=3.3SupportedSupportedSupportedSupportedNot SupportedHow to install ?Install from PIP :pip install qatestlinkInstall from setup.py file :python setup.py installDocumentationHow to use library, searching forUsage Guide.How to exec tests ?Install dependencies for tests :pip install-rrequirements-tests.txtTests from setup.py file :python setup.py testInstall TOX :pip install toxTests from tox :tox-l&& tox-eTOX_ENV_NAME(see tox.ini file to get environment names)TOX Env nameEnv descriptionpy34,py35,py36Python supported versionsdocsGenerate doc HTML in /docsflake8Exec linter in qalab/ tests/coverageGenerate XML and HTML reportsConfiguration File{
    "connection":{
        "is_https": false,
        "host": "ntz-qa.tk",
        "port": 86
    },
    "dev_key": "1bfd2ef4ceda22b482b12f2b25457495",
    "log_level":"INFO"
}TestsYou will need real testlink app running before you can just execute on command linepython setup.py testGetting StartedJust starting example of usage before readUsage Guide.Create JSON configuration ( runtime or read from file,read config section)Instancetestlink_managerobjecttestlink_manager = TLManager(settings=my_json_config)Use somemethod name with prefix‘api_’fromqatestlink.core.testlink_managerimportTLManagerfromqatestlink.core.utilsimportsettingsSETTINGS=settings(file_path="/home/user/config/dir/",file_name="settings.json")try:tlm=TLManager(settings=SETTINGS)ifnottlm.api_login():raiseException("Not logged for TestlinkWebApp")# ENDprint(tlm.api_tprojects())print("Test PASSED!")exceptExceptionaserr:print("ERROR:{}".format(err))importpdb;pdb.set_trace()# TODO, remove DEBUG laneprint("Test FAILED!")
Package: qat-hardware
Module qat-hardwareThis moduleqat-hardwareis part ofmyQLM Power Access (a.k.a. QLMaaS)project. myQLM is a quantum
software stack for writing, simulating, optimizing, and executing quantum programs.PrerequisitesThis version of myQLM works on both Windows, macOS and Linux for different versions of Python 3. Please look at thecompatibility matrixto ensure myQLM is installable on your computer.This module can be installed by typing the following command:pip install qlmaasLicenseAtos myQLM EULA
Package: qatingg
CELLULANT EXPRESSqatinggPython adapter for Cellulant Tingg express checkout version 2.1To install:pip install qatinggFor all calls you first have to initiate the adapter with your credentials
You can find your credentials over here:Developer portalParamsParamRequiredDescriptionclient idTrueUsed to Encryptclient secretTrueUsed to Encryptservice codeTrueUsed to Encryptaccess_keyTrueUsed to EncryptdomainTruespecify environment:stagingorsandboxurlTrueUsed to pass custom urlpathTrueUsed to pass custom pathadapter = MulaAdapter(<client id>, <client secret>, <service code>, <access_key>, <domain>, <url> , <path>)domain:User have two options.These are cellulant's testing environments:STAGING 
or 
SANDBOX
or
LOCALadapter.get_encryption(msisdn='0730xxxxxxx',customer_first_name='John',customer_last_name='Doeh',customer_email='john.doeh@jd.com',transaction_id='<unique>',account_number='066564ACC',amount=1000,currency_code='KES',country_code='KE',description='Airticket',due_date='2019-10-0112:12:00',orint(30)#Minutespayer_client_code='i8UytECD',language_code='en',success_url='http://callbackurl.com/success',fail_url='http://callbackurl.com/fail',callback_url='http://callbackurl.com/callback')due_date:User can pass the number of minutes(int) for the session or use cellulant data format(''Y-m-d H:M:S'')
To get the express page:checkout_type:Cellulant have several ways of checkoutExample:
-------------
modal
express
themed-checkout
---------------Note: Add payer client code, ONLY if you're testing single payment option'This will return checkout response as a url.Example below:Example urlCode Sampleimportsysfromtingg.adaptersimportTinggAdapterimportrandomdefget_response():init=TinggAdapter(iv_key="h3tckgMNxxxxx",secret_key="Nmxx6546xxxxxx",access_key="$2a$08$wQ2ghgfhgfhfghfh64564",service_code="EWWW5763434",domain="SANDBOX",url="http://localhost:3020",path="/")response=init.get_encryption(msisdn='0724565xxxx',customer_first_name='John',customer_last_name='Doeh',customer_email='john.doeh@jd.com',transaction_id=random.randint(0,sys.maxunicode),account_number='3434364ACC',amount=1000,currency_code='UGX',country_code='UG',description='Air ticket',checkout_type="express",due_date=30,# or "2019-12-12 12:12:12"payer_client_code='',language_code='en',success_url='http://callbackurl.com/success',fail_url='http://callbackurl.com/fail',callback_url='http://callbackurl.com/callback')#To see code returnedprint(response)returnresponseTestsRunning testspython setup.py test
Package: qat-lang
Module qat-langThis moduleqat-langis part ofmyQLMproject. myQLM is a quantum
software stack for writing, simulating, optimizing, and executing quantum programs. This module
provides tools for building quantum circuits.PrerequisitesThis version of myQLM works on both Windows, macOS and Linux for different versions of Python 3. Please look at thecompatibility matrixto ensure myQLM is installable on your computer.This module can be installed by typing the following command:pip install myqlmLicensemyQLM EULA
Package: qatools
QAQA is an advanced tool for Android testing!Installpip3install-Uqatools-ihttps://pypi.tuna.tsinghua.edu.cn/simpleDescriptionusage:qa[-h][-v]{clear,info,adb,remote,proxy,unproxy}...

QAisanadvancedtoolforAndroidtesting!Created:Lijiawei.Version0.0.8

positionalarguments:{clear,info,adb,remote,proxy,unproxy}sub-commandhelpclearclearappcachedata.infoshowappsettingpage.adbcompleteadbdebuggingcapability.remoteopenAndroiddeviceremotedebuggingport(5555).proxyenabledeviceglobalproxy(172.17.30.10:8888).unproxydisabledeviceglobalproxy.

optionalarguments:-h,--helpshowthishelpmessageandexit-v,--versionshowversionClearClear app cache dataqaclearcom.test.appInfoShow app infoqainfocom.test.appAdbComplete adb debugging capabilityqaadbRemoteOpen Android device remote debugging port(5555)qaremoteProxyEnable device global proxy# default proxy port is 8888qaproxy# custom proxy portqaproxy5555UnproxyDisable device global proxyqaunproxy
Package: qat-quops
Module qat-quopsThis moduleqat-quopsis part ofmyQLM Power Access (a.k.a. QLMaaS)project. myQLM is a quantum
software stack for writing, simulating, optimizing, and executing quantum programs.PrerequisitesThis version of myQLM works on both Windows, macOS and Linux for different versions of Python 3. Please look at thecompatibility matrixto ensure myQLM is installable on your computer.This module can be installed by typing the following command:pip install qlmaasLicenseAtos myQLM EULA
Package: qatrah
QatraH | قطرة | (Droplet)Using quantum computing to design a more precise, environmental friendly and robust water distribution network and debugging.QatraH Website LinkNYUAD Hackathon for Social Good in the Arab World: Focusing on Quantum Computing (QC) and UN Sustainable Development Goals (SDGs).https://nyuad.nyu.edu/en/events/2023/april/nyuad-hackathon-event.htmlPresentationThe Slides can be viewed atinformation.MotivationSolving quantum solution for water based distibution and debugging using quantum computing.
Buzz words: WDN, Quantum Computing, QUBO, QML, Optimization, Pennylane, JaxQuantum algorithm:Variational Quantum Eigensolver (VQE)Quantum Approximate Optimization Algorithm (QAOA)Quantum Machine Optimization AlgorithmQuantum Machine Learning on GraphInstallation Instructions:Requirements:pip3 install -r requirements.txt*Conda users, please make sure toconda install pipand use it for the above requirements.Input to the program:Sensor readingsPaths from source to sensorDataset of the water sample like from DEWA site under paywallReplacing Classical Pressure Sensors with Optimized Quantum SensorsCompared to classical pressure sensors, quantum sensors are not invasive. They are also tolerant to the changes in the environment around it while also being more accurate. This improves the ability to detect pipe leakage.Leak Detection and LocalizationLeakage in water distribution systems has been a challenge for water management committees. The real-life data collected from the optimal placed sensors, can be used to predict and localise leakage by identifying the deviations of pressure in the network. This task can be done both using QUBO and Quantum Machine Learning based models.Using Quantum Machine LearningExisting classical literature, suggests the use of machine learning to predict leakage and localise it to a particular pipe using the data from pressure sensors in the WDN at any given point of time. We attempt to solve the same using a quantum machine learning based model.Specifically, we collect the pressure data from the optimally-placed sensors in a water distribution network to predict leakage in the WDN using a quantum neural network. It is implemented in the Pennylane framework using Jax. The data is fed into the model using Angle encoding. The model is composed of a parametrised quantum circuit with RY, RZ and CNOT gates which are trained over a total of 500 epochs. We use a train to test-set ratio of 4:1 and optimise the model using Rectified adam over the binary cross-entropy loss. At the end we obtain a test accuracy of 87.02% over the dataset of size 650.AcknowledgementsHackers:Anas,Basant,Mohammed,Airin,Lakshika,Sanjana,Selin Doga,YaserMentors:Fouad,El Amine,Victory Omole,Akash KantAnd thank you to the oragnising committee of NYUAD 2023 Hackathonhttps://nyuad.nyu.edu/en/events/2023/april/nyuad-hackathon-event.htmland Qbraid and other student who made it possible and great.