Saravanan666/pypi-org huggingface dataset:
Package: qreservoir
QreservoirQreservoir is a lightweight python package built on top of qulacs to simulate quantum extreme learning and quantum reservoir computing models.Qreservoir is licensed under theMIT license.Tutorial and API documentsDocumentation and API:https://owenagnel.github.io/qreservoir.Quick Install for Pythonpip install qreservoirUninstall Qreservoir:pip uninstall qreservoirFeaturesFast simulation of quantum extreme learning machine and quantum reservoir computing.Python sample codefromqulacsimportObservablefromsklearn.linear_modelimportLinearRegressionfromqreservoir.datasetsimportComplex_Fourrierfromqreservoir.encodersimportExpEncoderfromqreservoir.modelsimportQELModelfromqreservoir.reservoirsimportRotationReservoirdataset=Complex_Fourrier(complexity=1,size=1000,noise=0.0)encoder=ExpEncoder(1,1,3)# 1 feature, 1 layer, 1 qubit per featurereservoir=RotationReservoir(encoder,0,10)# 0 ancilla qubits, 10 depthobservables=[Observable(3)for_inrange(9)]# create observable setfori,obinenumerate(observables[:3]):ob.add_operator(1.0,f"X{i}")fori,obinenumerate(observables[3:6]):ob.add_operator(1.0,f"Z{i}")fori,obinenumerate(observables[6:]):ob.add_operator(1.0,f"Y{i}")model=QELModel(reservoir,observables,LinearRegression())# observable is a qulacs Observable objectX,_,y,_=dataset.get_train_test()model.fit(X,y)print(model.score(X,y))How to citeN/AFuture improvementsModel creation currently a bit clunky. Models should take encoders and reservoirs as two seperate arguments and size of inputs should be determined dynamically when fit/score are called. This is made more difficult by the fact we wish to extract variance and concentration data from the models. Ideally we wantRCModelandQELModelto implement scikit-learn'sBaseEstimatorinterface.Additional tests should be written for datasets and new reservoirs/encodersImprove package structure by using python specific object oriented features.
Package: qr-filetransfer
✨Transfer files over WiFi between your computer and your smartphone from the terminal✨InstallationYou will find the most updated version ofqr-filetransferhere. But if you want the most stable version, usepipto install itPip InstallGlobal Installpip3 install qr-filetransfer[extras]Local Installpip3 install --user qr-filetransfer[extras]If you run into problems during the install, try removing the optional[extras]at the end of the command.Git Install# clone the repo$gitclonehttps://github.com/sdushantha/qr-filetransfer.git# change the working directory to qr-filetransfer$cdqr-filetransfer# install the requirements$pip3install-rrequirements.txtUsageusage: qr-filetransfer [-h] [--debug] [--receive] [--port PORT]
                       [--ip_addr {192.168.0.105}] [--auth AUTH]
                       file_path

Transfer files over WiFi between your computer and your smartphone from the
terminal

positional arguments:
  file_path             path that you want to transfer or store the received
                        file.

optional arguments:
  -h, --help            show this help message and exit
  --debug, -d           show the encoded url.
  --receive, -r         enable upload mode, received file will be stored at
                        given path.
  --port PORT, -p PORT  use a custom port
  --ip_addr {192.168.0.105}
                        specify IP address
  --auth AUTH           add authentication, format: username:passwordNote:Both devices needs to be connected to the same networkExitingTo exit the program, just pressCTRL+C.Transfer a single file$qr-filetransfer/path/to/file.txtTransfer a full directory.Note:the directory gets zipped before being transferred$qr-filetransfer/path/to/directory/Receive/upload a file from your phone to your computer$qr-filetransfer-r/path/to/receive/file/to/CreditsInspired by the Go projectqr-filetransferLicenseMIT LicenseCopyright © 2019 Siddharth DushanthaActive contributer -Yu-Chen Lin
Package: qri
qri-python██████╗ ██████╗ ██╗
██╔═══██╗██╔══██╗██║
██║   ██║██████╔╝██║
██║▄▄ ██║██╔══██╗██║
╚██████╔╝██║  ██║██║
 ╚══▀▀═╝ ╚═╝  ╚═╝╚═╝Python client for qri ("query")Installationpip install qriAboutPython wrapper to enable usage ofqri, the dataset toolchain. Can
either use a locally installed qri command-line program to work with your local repository,
or can directly get datasets from theQri Cloud.Dataset objects returned by this library have the components that exist in thestandard qri model. The body is returned
as a Pandas DataFrame in order to easily integrate with other data science systems, like
Jupyter Notebook.UsageThe following examples assume you have the latest release of the qri command-line client
installed. You can get this fromhttps://github.com/qri-io/qri/releasesimport qri# Pull a dataset from cloud and add it to your repository
$ qri.pull("b5/world_bank_population")Fetching from registry..."Added b5/world_bank_population: ..."# List datasets in your repository
$ qri.list()[Dataset("b5/world_bank_population")]# Get that single dataset as a variable
$ d = qri.get("b5/world_bank_population")# Look at metadata description
$ d.meta.description( 1 ) United Nations Population Division. World Population Prospects: 2017 Revision...# Get the dataset body as a pandas DataFrame
$ d.body.   country_name  country_code   indicator_name    ...0   Afghanistan   AFG            Population, total ......TODO: Save changes
Package: qrImageIndexerGUI
qrCodeImageSorterGUIGUI interface for theqrCodeImageSorterrepository. For detailed information on the philosophy
of the tool see the readme in this repository. This is a GUI interface for this underlying toolset.A Quick (but rough) Video Guidehttps://user-images.githubusercontent.com/65805625/192924326-2560853a-2418-4b95-8806-40d787ae489c.mp4InstallationTo install the tool, run the below command with any version of Python above 3.7:pip install qrImageIndexerGUIInstructionsLaunch WindowTo load the launch window, run the command:python -m qrImageIndexerGUIThis will present the user with the following window:From here you can open either the window for generating the QR codes or for sorting the resultant images.Generate QR CodesThis window allows the user to generate QR codes. It also provides a preview of what the output PDF will look like:The available controls are listed below:Save PDF generated based on the listed inputs to file;Update sample PDF based on the listed inputs;Toggle sorting of PDF for slicing or down the page;Toggle generating QR codes for heading lines;Toggle reapeating of parent headings on every line of the PDF;Toggle inclusion of a prefix in the QR code;Configure prefix to include;Tab-delineated item input;Sample PDF display.The recommended settings are set by default. In most situations the user should just enter their own text in the
text entry field (8).Sort ImagesThis window allows the user to sort photos that have been taken with QR codes in them. The interface will look similar to the below.
Note that the provided screenshot is shown after having scanned a folder of images for demonstration. It will be blank prior to this:The available controls are listed below:Scan images from a selected directory. This will open a prompt asking the user to select a directory;Save sorted images in a directory. This will save the images in the folder structure dictaged by the detected QR codes;Progress bar to indicate image scanning progress;Indicate whether QR codes have a prefix attached;Specify QR code prefix if used;Display images where QR codes are detected;6.1. Path to specified image;6.2. Thumbnail of image;6.3. Path detected in QR code.Not Shown: New Feature - Quick SortThere is now a quick sort button. This button will combine the scanning and saving process. You will be
prompted for 2 directories, first the input and then the output. Images will be scanned then when
scanning is complete they will be saved directly to the output directory without displaying the images
in the window.This will improve performance where large numbers of images loading into the viewing window was
reducing the processing speed.Note on future featureIt is intended that a feature will be added to allow users to manually add images as key images where they are not detected with a QR code.
This will allow users to images where the QR code may not have been detected or where it was forgotten. That is the primary purpose of the
intermediate preview window but this feature is not implemented yet.
Package: qrimg
qrimgGenerate QRCode ImageInstallpipinstallqrimgUsageHelp InformationC:\Workspace\qrimg>qrimg--help
Usage:qrimg.py[OPTIONS]MESSAGE

Options:-o,--outputTEXTOutputfilename.[required]-v,--versionINTEGERAnintegerfrom1to40thatcontrolsthesizeoftheQRCode.Thesmallest,version1,isa21x21matrix.DefaulttoNone,meansmakingthecodetodeterminethesizeautomatically.-c,--error-correction[7|15|25|30]controlstheerrorcorrectionusedfortheQRCode.Defaultto30.-s,--box-sizeINTEGERcontrolshowmanypixelseach'box'oftheQRcodeis.Defaultto10.-b,--borderINTEGERcontrolshowmanyboxesthickthebordershouldbe(thedefaultis4,whichistheminimumaccordingtothespecs).-f,--fill-colorTEXTNamedcoloror#RGB color accepted. Defaulttonamedcolor'black'.-b,--back-colorTEXTNamedcoloror#RGB color accepted. Defaulttonamedcolor'white'.--helpShowthismessageandexit.Example 1Use qrimg command generate an image contain information "Hello world".qrimg-ohello.png"Hello world"Example 2Use qrimg command generate an image contain a url.qrimg-osite.pnghttp://www.example.comExample 3Use qrimg command generate a blue colored image.qrimg-osite.png-fbluehttp://www.example.comExample 3Use RGB color.qrimg-osite.png-f#ff00cc http://www.example.comBug reportPlease report any issues athttps://github.com/zencore-cn/zencore-issues.Releasesv0.2.0 2020/06/29Add controller parameters in generating.v0.1.0 2019/05/25First release.
Package: qrisp
Qrisp is an open-source python framework for high-level programming of Quantum computers.
By automating many steps one usually encounters when progrmaming a quantum computer, introducing quantum types, and many more features Qrisp makes quantum programming more user-friendly yet stays performant when it comes to compiling programs to the circuit level.DocumentationThe full documentation, alongside with many tutorials and examples, is available underQrisp Documentation.InstallingThe easiest way to install Qrisp is viapippipinstallqrispQrisp has been confirmed to work with Python version 3.8, 3.9 & 3.10.First Quantum Program with QrispThe very first program you usually write, when learning a new programming language, is printing 'hello world'.
We want to do the same, but in a quantum way.For this we can make use of theQuantumStringtype implemented in Qrisp. So we start by creating a new variable of the type QuantumString and assign the value 'hello world':fromqrispimportQuantumStringq_str=QuantumString()q_str[:]="hello world"print(q_str)With theprint(q_str)command, we automatically simulate the circuit generated when assigninghello worldtoq_str. And es expected we gethello worldwith a probility of 1 as output:{'hello world':1.0}Now, let's make things more interesting: What happens, if we apply a Hadamard gate to the first qubit of the 7th character in our string?fromqrispimporth,QuantumStringq_str=QuantumString()q_str[:]="hello world"h(q_str[6][0])print(q_str)Go on, install Qrisp and try it yourself!Of course, Qrisp offers much more than just handling strings with a quantum computer. More examples, like how to solve a quadratic equation with Grover's algorithm or how to solve the Travelling Salesman Problem on a quantum computer, can be foundhere.Authors and CitationQrisp was mainly devised and implemented by Raphael Seidel, supported by Sebastian Bock and Nikolay Tcholtchev.If you have comments, questions or love letters, feel free to reach out to us:raphael.seidel@fokus.fraunhofer.desebastian.bock@fokus.fraunhofer.denikolay.tcholtchev@fokus.fraunhofer.deLicenseEclipse Public License 2.0
Package: qrkey
QrkeySummaryQrkey is a library implementing a protocol designed to facilitate the
deployment of robots swarm.
The protocol relies onMQTTso that a
Qrkey server is reachable even with a private IP address.
Access to the swarm is managed by a QR code based authentication scheme.InstallationPython server library:pip install qrkeyNode client library:npm i qrkeyLicenseqrkeyis distributed under the terms of theBSD-3-Clauselicense.
Package: qrkit
Simple binding of qrencode library released under the public domain
extracted from qurl.RequirementsTo build the binding you will need to install:libqrencode-devCythonTo use it you will need either:Python Imaging LibraryPillowInstallationDo one of this command to install it from pypipip install qrkitor:easy_install qrkitFrom code:$ python setup.py installSimple usagefrom qrkit.qrimg import encode_to_img

img = encode_to_img('http://www.python.org/', width=300, border=10)
img.save('qrimage.png', 'PNG', quality=80)
Package: qrlew-datasets
datasetsThis helps with the use of standard SQL datasets.It comes with 4 datasets:'extract': an extract from 2 simple datasets 'census' (from the US cenus) and 'beacon' (with japanese names and labels).'financial': fromhttps://relational.fit.cvut.cz/dataset/Financial'imdb': fromhttps://relational.fit.cvut.cz/dataset/IMDb'hematitis': fromhttps://relational.fit.cvut.cz/dataset/HepatitisInstalationThe package can be installed with:pipinstallqrlew-datasetsThe library assumes:either that postgresql is installed,or that docker is installed and can spawn postgresql containers.Postgresql in a containerThe library automatically spawns containers. There is nothing to do.Without docker installedSetup apsqlas inhttps://colab.research.google.com/github/tensorflow/io/blob/master/docs/tutorials/postgresql.ipynbYou can set the port to use: here 5433.# Inspred by https://colab.research.google.com/github/tensorflow/io/blob/master/docs/tutorials/postgresql.ipynb#scrollTo=YUj0878jPyz7sudoapt-get-y-qqupdate
sudoapt-get-y-qqinstallpostgresql-14# Start postgresql server# sudo sed -i "s/#port = 5432/port = 5433/g" /etc/postgresql/14/main/postgresql.confsudosed-i"s/port = 5432/port = 5433/g"/etc/postgresql/14/main/postgresql.conf
sudoservicepostgresqlstart# Set passwordsudo-upostgrespsql-Upostgres-c"ALTER USER postgres PASSWORD 'pyqrlew-db'"# Install python packagesTesting the absence of docker if docker is installed:You can simulate the absence of docker by running this code inside a container.First run:docker run --name test -d -i -t -v .:/datasets ubuntu:22.04Then run:docker exec -it test bashBuilding the.sqldumpsTo build the datasets, install the requirements with:poetryshellYou can then build the datasets with:python-mdatasets.buildYou may need to install the requirements of some drivers such as:https://pypi.org/project/mysqlclient/
Package: qrl-graph
QRL_graphReinforcement Learning for the quantum speedup in the graphGiven a graph, we try to compute the classical and quantum critical time. The definition of the criticial time is defined as the hitting time of the endpoints with the probility bigger than $p_0$.Installpip install qrl_graph==0.0.13Usageimportnumpyasnpfromscipy.sparse.csgraphimportlaplacianimportnetworkxasnximportmatplotlib.pyplotaspltimportmatplotlibfromqrl_graph.graph_env.graphimportGraphg=np.array([[0,1,1,0],[1,0,0,1],[1,0,0,1],[0,1,1,0]])g_env=Graph(g=g)print('Laplacian matrix:\n',g_env.laplacian)t_cl=g_env.get_classical_time(p0=0.1)t_q=g_env.get_quantum_time(p0=0.1)print('Classical time:',t_cl)print('Quantum time:',t_q)print('Speed up:',t_cl/t_q)# uncomment to show the graph# g_env.show_graph()The results areLaplacian matrix:
 [[ 2 -1 -1  0]
 [-1  2  0 -1]
 [-1  0  2 -1]
 [ 0 -1 -1  2]]
Classical time: 0.25000000000000006
Quantum time: 0.6000000000000003
Speed up: 0.4166666666666665Linear chainfromqrl_graph.graph_env.graphimportGraphfromqrl_graph.utilsimportconstruct_linear_graphN=40g=construct_linear_graph(N)g_env=Graph(g=g)# print('Laplacian matrix:\n', g_env.laplacian)p0=1.0/(2*N)t_cl=g_env.get_classical_time(p0=p0)t_q=g_env.get_quantum_time(p0=p0)print('Linear chain, N =',N)print('Classical time:',t_cl)print('Quantum time:',t_q)print('Speed up:',t_cl/t_q)glued treefromqrl_graph.graph_env.graphimportGraphfromqrl_graph.utilsimportconstruct_glued_tree_graph# this is the height of binary tree, and total height of the glued tree is 2*heighth=3g=construct_glued_tree_graph(h)N=g.shape[0]g_env=Graph(g=g)# print('Laplacian matrix:\n', g_env.laplacian)p0=1.0/(2*N)t_cl=g_env.get_classical_time(p0=p0)t_q=g_env.get_quantum_time(p0=p0)print('Glued tree, N =',N)print('Classical time:',t_cl)print('Quantum time:',t_q)print('Speed up:',t_cl/t_q)
Package: qrm
QrM - Qt5 based file explorer for reMarkableUse a Qt5 based UI tomanageview, upload, delete content of/to your
reMarkable I/II via SSH.Project pageUsageOnce configured runqrmto start up a UI, connect to and see a list of content on a (WiFi enabled
and switched on) reMarkable device. Drag and drop EPUB and PDF files onto the window to make them
available on the device.Runqrm [ls|list]to list content on the connected deviceRunqrm [upload|push] <FILE> [<FILE>]to copy stuff onto the connected deviceRunqrm infoto see configuration and stuffRunqrm rebootto .. you know..Runqrm config-auth <KEY>=<VALUE> ...to configure stuff, e.g.Please note that currently reMarkable will not recognize file modifications done via SSH - to make
new files available you'll have to reboot the device. Runqrm rebootor press theRebootbutton
to do this via SSH (or reboot it manually).ConfigurationIn the UI just enter your credentials, they're getting saved automatically.The command line interface allows persistant configuration using theconfig-authsub-command:qrm config-auth host=192.168.178.13 password='s0rry_Pl4in+ex+!'Please note that currently only connection via IP address (rather than hostname) and plaintext
password is working. This is subject to change ("of course").ToDo for v1.0Allow hostnames instead of IP addressesMake use of shared keys and configuration in~/.ssh/configSupport drag&drop to add content in UISupport deletionSupport PdfSupport web pages via PdfFuture featuresDownload and manage notesMake backupsOther convenience stuff via SSH, e.g. installing softwareInstallationpip3 install [--user] [--upgrade] qrmDevelopment & Contribution# provide dependencies, consider also using pyenv
pip3 install -U poetry pre-commit

git clone --recurse-submodules https://projects.om-office.de/frans/qrm.git

cd qrm

# activate a pre-commit gate keeper
pre-commit install

# if you need a specific version of Python inside your dev environment
poetry env use ~/.pyenv/versions/3.10.4/bin/python3

poetry installLicenseFor all code contained in this repository the rules of GPLv3 apply unless
otherwise noted. That means that you can do what you want with the source
code as long as you make the files with their original copyright notice
and all modifications available.SeeGNU / GPLv3for details.Read(nothing here yet)
Package: qrmagic
QR MagicSome magical semi-automated tools to better handle sample tracking during fieldwork.To install:python3 -m pip install qrmagicOr, to get the development version:python3 -m pip install -e git+https://github.com/kdm9/NVTK.gitQR Code Label PrintingMake a PDF of labels for each sample ID. There are a few hard-coded "Avery" label
types commonly used in the Weigel group, and it's super easy to add others
(please create a github issue if you need help doing so, or want me to build a
new label type into the code).$python3-mqrmagic.labelmaker--help
usage:labelmaker.py[-h][--demoDIR][--list-label-types][--label-typeTYPE][--copiesN][--outputFILE][--id-fileFILE][--id-formatFORMAT][--id-startN][--id-endN]optionalarguments:-h,--helpshowthishelpmessageandexit--demoDIRWriteademo(10labels,fourrepsperlabel)foreachlabeltypetoDIR.--list-label-typesWritealistoflabeltypes.--label-typeTYPELabeltype.--copiesNCreateNcopiesofeachlabel.--outputFILEOutputPDFfile.--id-fileFILEFileofIDs,oneperline.--id-formatFORMATPython-styleformatstringgoverningIDformate.g.WGL{:04d}givesWGL0001..WGL9999--id-startNFirstIDnumber(default1)--id-endNLastIDnumber(default100)To see what label types are available, do:$ python3 -m qrmagic.labelmaker --list-label-types
L7636:  Mid-sized rounded rectangular labels (45x22mm) in sheets of 4x12
L3667:  Mid-sized rectangular labels (48x17mm) in sheets of 4x16
L7658:  Small labels (25x10mm) in sheets of 7x27
CryoLabel:  Cryo Labels for screw-cap eppies. White on left half, clear on right.One can also create a demonstration PDF for each label type with the command:$python3-mqrmagic.labelmaker--demooutput_dir/QR Code-based Image organisationSo, we took all these photos in the field, now what do we do with them? The first step is to organise them by sample. To do so manually is cumbersome, so here are some tools to help.Step 1: scan images on your machineThis CLI tool will scan your images, doing its best to decode all the QRcodes
they contain. For each image it also reports the location and time the image
was taken, and various other bits of metadata.NB: for silly javascript reasons, you need to have all images be in a single
directory. If you have your images organised in directories (e.g. by date, or
by camera), please run this process once per directory, or move or symlink all
images into a single directory.qrmagic-detect -o my-images.json my-images/*.JPGStep 2: curationNow, go tohttps://qrmagic.kdmurray.id.au/imagesort.html. Here, you should
upload the JSON file created above, and up will pop a table of images. You can
then try automatically filling missing barcodes based on the adjacent codes
(always do a bit of manual curation here), or manually type in QR codes that
are not detectable. When you are finished, you can download a Bash script which
contains commands to rename all your files by sample ID (or whatever your
barcodes denote).Step 3: rename imagesOnce downloaded, the renamer script should be run in the same directory your
images are all in:cd /path/to/my-images
bash -x ~/Downloads/rename.sh
Package: qr_monkey
qr_monkeyAn API Client for qrcode-monkey API that integrates custom and unique looking QR codes into your system or workflow.Installation$pipinstallqr_monkeyUsage1. Import qr_monkeyAfter installing the package, import it into your project.import qr_monkey2. Create base_urlUse the provided custom function to create a custom QR code with the specified parameters:base_url = "specify the url you want to link to the QR code"3. Set parametersYou can set these according to the'QRCode-Monkey website'For example:params = {
"data": base_url,
"config": {
"body": "circle",
},
"size": 300,
"download": False,
"file": "png"
}4. Create custom QR codeqr_monkey.custom(base_url,params)ContributingInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.Licenseqr_monkeywas created by Vansh Murad Kalia. It is licensed under the terms of the MIT license.Creditsqr_monkeywas created withcookiecutterand thepy-pkgs-cookiecuttertemplate.