Saravanan666/pypi-org huggingface dataset:
Package: qck-pyiseasy
The Python-Easy ProjectMade by Tarvey@github quaqak@youtubeHow to use it?Its easy! just type "pip install easypython"Commandsshow - Shows text on the screeniw = Prints and waits for user input.docmd - Runs a command in bash or cmd.Functionsiswin() - Checks if a user is on windows.if iswin():
show("Hi Windows User!")
Package: qcktypes
qcktypesPython implementation ofDyne's file extension listWhat is thisThere I was, trying to get files out of a directory and categorize them based on their file extension. "This is probably already a module" I said. I was right, there it was, gloriousfiletype."Wait... what is a MIME bruh 😭"I don't want to validate files actually, just tell me what they areThe modulefiletypevalidates files with theirmagic numbersor whatever, but I didn't want that. I foundDyne's file extension listand quickly wrote up this module since I couldn't find anything similar. I would write more features but I know literally nobody will ever use this so it's probably fine.Rather than validating files with their magic numbers this module simply checks the extension of an input file and compares it with a dictionary of extensions and returns its category.Installingpython3 -m pip install -U qcktypesQuick exampleimportqcktypesfile='example.txt'category=qcktypes.find_type(file)print(f'{file}is in category:{category}!')output :$ python3 example.py
example.txt is in category: text!
Package: qclib
Quantum computing library (qclib)Qclib is a quantum computing library implemented using qiskit.The focus of qclib is on preparing quantum states, but it is not limited to that.InstalationThe easiest way of installing qclib is by using pip:pipinstallqclibInitializing your first quantum state with qclibNow that qclib is installed, you can start building quantum circuits to prepare quantum states. Here is a basic example:$ pythonimportnumpyasnpfromqiskitimporttranspilefromqiskit_aerimportAerSimulatorfromqclib.state_preparationimportLowRankInitialize# Generate 3-qubit random input state vectorn=3rnd=np.random.RandomState(42)input_vector=rnd.rand(2**n)+rnd.rand(2**n)*1jinput_vector=input_vector/np.linalg.norm(input_vector)# Build a quantum circuit to initialize the input vectorcircuit=LowRankInitialize(input_vector).definition# Construct an ideal simulatorbackend=AerSimulator()# Tests whether the produced state vector is equal to the input vector.t_circuit=transpile(circuit,backend)t_circuit.save_statevector()state_vector=backend.run(t_circuit).result().get_statevector()print('Equal:',np.allclose(state_vector,input_vector))# Equal: TrueComparing algorithms for quantum state preparationThe following table shows the depth, number of qubits, and CNOTs of circuits produced by different state preparation methods for the same random 15-qubit state.methodlibqubitscnotsdepthlow-rankqclib153099853643svdqclib153881471580ucgqclib153275265505isometryqiskit153275265505multiplexorqiskit1565504131025bdspqclib1151723201603dcspqclib32767262016899You can reproduce the resultshere.AuthorsThe first version of qclib was developed atCentro de Informática- UFPE.
Qclib is an active project, andother peoplehave contributed.If you are doing research using qclib, please cite our project.
We use aCITATION.cfffile, so you can easily copy the citation information from the repository landing page.Licenseqclib isfreeandopen source, released under the Apache License, Version 2.0.
Package: qclient
qclientClient for running quantum applications on qserver instances. Seehttps://quantum.tecnalia.com.InstallpipinstallqclientUsageimportqclientqclient.configure({'token':'YOUR_TOKEN'})print(qclient.get('bell'))print(qclient.execute('bell'))print(qclient.execute(circuit.qasm()))Methodsconfigure({ server?, ext? ,token? }):server: default server athttps://quantum.tecnalia.com.ext: default '.qasm', useful in case always using the same language to represent the algorithm.token: default '', authorization token to execute services. E.g.:configure({"token':'kkajsdkj-sudiuawjd...."}).get(algorithm_name): the algorithm in plain text, the extension of the file is optional. E.g.:get('bell').execute(algorithm_name or algorithm_description): based on the extension, an engine executes the algorithm and provides the result as string (depending on the engine, the result format can vary). E.g.:execute('bell'). If the algorithm is not stored yet, it can be executed by providing the text representation (in qasm, quil, etc.). E.g: execute('...qasm_string').
Package: qclight
Simple and lightweight Quantum Computing simulator built with python3 for educational purposes.InstallationpipinstallqclightExample"""Main"""fromqclight.circuitimportQCLVisualCircuitdefmain():"""Simple main function"""circuit=QCLVisualCircuit(4)circuit.h(0)circuit.cx(0,3)circuit.barrier()circuit.x(2)print(circuit)if__name__=="__main__":main()TODOImprove performance with a custom range function for fixed bitsMeasure qubitAdd more examplesPrint ascii of circuitPrint svg of circuitCircuit compositionCircuit to gateSumCircuit
Package: qcloudapi3
qcloudapi3是为了让Python3开发者能够在自己的代码里更快捷方便的使用腾讯云的API而开发的Python库。Example>>> from qcloudapi3 import QcloudApi
>>> _module = 'wenzhi'
>>> action = 'TextSentiment'
>>> config = {
>>>     'Region': 'gz',
>>>     'secretId': '123',
>>>     'secretKey': '000',
>>>     'method': 'post'
>>> }
>>> params = {
>>>     "content": "所有人都很差劲。",
>>> }
>>> service = QcloudApi(_module, config)
>>> print('URL:\n' + service.generateUrl(action, params))
>>> print(service.call(action, params))
URL:
https://wenzhi.api.qcloud.com/v2/index.php
{"code":0,"message":"","codeDesc":"Success","positive":0.048611093312502,"negative":0.95138889551163}Installpip install qcloudapi3AuthorYixian Du
Package: qcloudapi-sdk-python
Qcloud Python SDK is the official software development kit, which allows Python developers to write software that makes use of qcloud services like CVM and CBS.The SDK works on Python versions:2.7 and greater, including 3.x.xQuick StartFirst, install the library:$pipinstallqcloudapi-sdk-pythonor download source code from github and install:$gitclonehttps://github.com/QcloudApi/qcloudapi-sdk-python.git$cdqcloudapi-sdk-python$pythonsetup.pyinstallThen, from a Python interpreter or script:>>>fromQcloudApi.qcloudapiimportQcloudApi>>>module='cvm'>>>action='DescribeInstances'>>>config={'Region':'ap-guangzhou','secretId':'xxxx','secretKey':'xxxx','Version':'2017-03-20'}>>>params={'Limit':1}>>>service=QcloudApi(module,config)>>>service.call(action,params)
Package: qcloud_cos_py3
version: 0.1.4OverviewA 3rd-party SDK for Qcloud COS and Python 3Installation / UsageDocs:https://su27.github.io/qcloud_cos_py3/Use pip to install:$ pip install qcloud_cos_py3Or clone the repo:$ git clonehttps://github.com/su27/qcloud_cos_py3.git$ python setup.py installContributing$ virtualenv -p python3.6 venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ cp tests/config_example.py tests/config.py# Fill the blanks in the file and run
$ make test-coverageIt’s originally forked from [cos-python3-sdk](https://github.com/imu-hupeng/cos-python3-sdk)ExamplePlease checktests/test_cos.py
Package: qcloud-python-sts
获取 SDKpip install -U qcloud-python-sts调用示例请查看demo里的示例。接口说明get_credential获取临时密钥接口参数说明字段类型描述secret_idString云 API 密钥 Idsecret_keyString云 API 密钥 keyduration_secondslong要申请的临时密钥最长有效时间，单位秒，默认 1800，最大可设置 7200bucketString存储桶名称：bucketName-appid, 如 test-125000000regionString存储桶所属地域，如 ap-guangzhouallow_prefixlist资源的前缀，可以根据自己网站的用户登录态判断允许上传的具体路径，例子： a.jpg 或者 a/* 或者 * (使用通配符*存在重大安全风险, 请谨慎评估使用)allow_actionslist授予 COS API 权限集合, 如简单上传操作：name/cos:PutObjectpolicydict策略：由 allow_actions、bucket、allow_prefix字段组成的描述授权的具体信息返回值说明字段类型描述credentialsdict临时密钥信息tmpSecretIdString临时密钥 Id，可用于计算签名tmpSecretKeyString临时密钥 Key，可用于计算签名sessionTokenString请求时需要用的 token 字符串，最终请求 COS API 时，需要放在 Header 的 x-cos-security-token 字段startTimeString密钥的起始时间，是 UNIX 时间戳expiredTimeString密钥的失效时间，是 UNIX 时间戳返回结果成功的话，可以拿到包含密钥的 JSON 文本：{"credentials":{"tmpSecretId":"AKIDEPMQB_Q9Jt2fJxXyIekOzKZzx-sdGQgBga4TzsUdTWL9xlvsjInOHhCYFqfoKOY4","tmpSecretKey":"W/3Lbl1YEW02mCoawIesl5kNehSskrSbp1cT1tgW70g=","sessionToken":"c6xnSYAxyFbX8Y50627y9AA79u6Qfucw6924760b61588b79fea4c277b01ba157UVdr_10Y30bdpYtO8CXedYZe3KKZ_DyzaPiSFfNAcbr2MTfAgwJe-dhYhfyLMkeCqWyTNF-rOdOb0rp4Gto7p4yQAKuIPhQhuDd77gcAyGakC2WXHVd6ZuVaYIXBizZxqIHAf4lPiLHa6SZejSQfa_p5Ip2U1cAdkEionKbrX97xTKTcA_5Pu525CFSzHZIQibc2uNMZ-IRdQp12MaXZB6bxM6nB4xXH45mDIlbIGjaAsrtRJJ3csmf82uBKaJrYQoguAjBepMH91WcH87LlW9Ya3emNfVX7NMRRf64riYd_vomGF0TLgan9smEKAOdtaL94IkLvVJdhLqpvjBjp_4JCdqwlFAixaTzGJHdJzpGWOh0mQ6jDegAWgRYTrJvc5caYTz7Vphl8XoX5wHKKESUn_vqyTAid32t0vNYE034FIelxYT6VXuetYD_mvPfbHVDIXaFt7e_O8hRLkFwrdAIVaUml1mRPvccv2qOWSXs"},"expiration":"2019-08-07T08:54:35Z","startTime":1565166275,"expiredTime":1565168075}get_policy获取策略(policy)接口。本接口适用于接收 Web、iOS、Android 客户端 SDK 提供的 Scope 参数。推荐您把 Scope 参数放在请求的 Body 里面，通过 POST 方式传到后台。参数说明字段类型描述bucketString存储桶名称：bucketName-appid, 如 test-125000000regionString存储桶所属地域，如 ap-guangzhouresource_prefixString资源的前缀，可以根据自己网站的用户登录态判断允许上传的具体路径，例子： a.jpg 或者 a/* 或者 * (使用通配符*存在重大安全风险, 请谨慎评估使用)actionString授予 COS API 权限，, 如简单上传操作：name/cos:PutObjectscopeScope构造policy的信息：由 action、bucket、region、sourcePrefix组成返回值说明字段类型描述policydict申请临时密钥所需的权限策略返回结果{"version":"2.0","statement":[{"action":["name/cos:PutObject"],"effect":"allow","resource":["qcs::cos:ap-guangzhou:uid/1250000000:example-1250000000/1.txt"]},{"action":["name/cos:GetObject"],"effect":"allow","resource":["qcs::cos:ap-guangzhou:uid/1250000000:example-1250000000/dir/exampleobject"]}]}
Package: qcloud-sdk-py
qcloud-sdk-py简介量潮科技出品的腾讯云Python服务端SDK。安装pip install qcloud-sdk-py使用假设在环境变量中配置QCLOUDSDK_SECRET_ID和QCLOUDSDK_SECRET_KEY，未配置可以通过APIClient传入。# 导入模块fromqcloud_sdk.apiimportQCloudAPIClient# 创建APIClient实例client=QCloudAPIClient()# 通用APIclient.request_api(service='cvm',region='ap-shanghai',api='DescribeZones',api_params={})文档腾讯云Python服务端SDK文档
Package: qcloudsms
腾讯云SMS Python3 SDK代码修改自：samhjn/qcloudsms-python3官方SDK使用样例。项目初心目标是初始化后立即可以使用尝试用很简单的代码完成绝大部分功能。在原有项目上，主要做了以下变更：删除了语音这些很少用到的东西，变更了原代码中不合适的class 命名使用python3的 requests 来发送请求添加了 demo 文件，原来代码的 demo 跑不起来用法请参考 demo.py 文件
Package: qcloud-user
Q-Cloud User DocumentationSetupBefore submitting any calculations, you will need to install and configure
the Q-Cloud command line interface:python3 -m pip install  qcloud_user
qcloud --configureYou will be prompted for several configuration values that can be obtained from
your Q-Cloud administrator.  You should have received an email with an initial
password for your account, and you will be prompted to change this the first
time you attempt to submit a job.Job ControlSubmitting JobsUse the--submitoption to submit Q-Chem jobs to the cluster, e.g.:qcloud --submit job1.inp job2.inp [...]Several jobs can be submitted at the same time and they will be submitted with
the default queue parameters.   If there are no compute nodes available, the
jobs will sit in the QUEUED state for a couple of minutes while a fresh compute
node is launched and configured.  Once the queue has cleared, the compute nodes
will automatically shut down after the configure time frame (default is five minutes).Jobs will be submitted with the default queue parameters.  To override the
default parameters and/or specify additional parameters, add them to the first
line of the Q-Chem input file. For example, the following limits the job to 1
hour:--time=1:00:00
$molecule
0  1
he
$end
$rem
...The number of threads can be specified by using the--ncpuflag, for example:qcloud --submit --ncpu 4 job1.inpNote that if the number of threads specified exceeds the number of cores on
an individual compute node, the job will not run.  Your QCloud administrator
will be able to inform you what this limit is.If the job submission is successful, a unique job identifier will be returned:[✓] Submitted job id gv6uqutvNmU0:             heliumA local registry of these IDs is kept, so it is not essential to use them in the
commands below. However, they may be required to disambiguate multiple jobs
submitted with the same input file basename.Monitoring JobsTo monitor the progress of jobs, use the--statusoption along with a string,
which could be the file name, job ID or substring:qcloud --status <jobid|jobname>The progress of jobs in the RUNNING state can be obtained using:qcloud --tail <jobid|jobname>A job in the QUEUED or RUNNING state can be cancelled, which will remove it from the queue:qcloud --cancel <jobid|jobname>Downloading ResultsOnce a job in in the ARCHIVED state, it can be downloaded from the S3 bucket onto
the local machine:qcloud --get <pattern>The download will create a new directory with the same basename as the input file
containing the output from the calculation.Jobs in the DOWNLOADED state can be cleared from the job registry on the local machine:qcloud --clear <pattern>Note that this does not remove the results from the S3 bucket.
If you want to remove the job from the registry regardless of status, use the--removeoption.Other commandsThe following will give a full list of commands available using the CLI:qcloud --helpTroubleshootingIf you encounter additional problems not covered in this guide, please contact your
Q-Cloud administrator or emailsupport@q-chem.comfor assistance.
Package: qcmd
![CI](https://github.com/libanvl/python-qcmd/workflows/CI/badge.svg)
[![PyPI version](https://badge.fury.io/py/qcmd.svg)](https://badge.fury.io/py/qcmd)# python-qcmd
Synchronous concurrent executor command queueing for Python 3.8# Developing
## Install pipx if pipenv is not installed
python3 -m pip install pipx
python3 -m pipx ensurepath## Install pipenv using pipx
pipx install pipenv## Init
bash init.shMIT LicenseCopyright (c) 2020 libanvl.devPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: qcm-parser
QCM parserIt's a basic and quite strict QCM (Multiple Choices Questions) parser.It parses a file .md file into Python objects.
That's all.There's no rendering, no export. It must be done separetaly.InstallationIt requires python>=3.7 andmarkdownpackage.$pipinstallqcm_parserUsageIn your script :fromqcm_parser.parserimportParseQCMqcm=ParseQCM.from_file("my_qcm_file.md")print(qcm)Will display your QCM as a text.In memory, youqcmobject is represented as a tree which holds parts.Those parts holds questions, holding answers.It is then easy to navigate through it like this :print(qcm.title)
for part in qcm.parts:
    print(part.title)
    print(part.text)
    for question in part.questions:
        print(question.title)
        print(question.text)
        for answer in question.title:
            print(answer.answer)ModesThere's 2 modes :for web export (qcm_part.from_file(filename, mode="web")), the default one,modenamed parameter can be ommitted.for pdf export (qcm_part.from_file(filename, mode="pdf")).Themode=webshould be used if you want to serve a QCM like I dohereIt replacesmarkdownsyntax withhtmlsyntax usingmarkdownmodule.Themode=pdfcan be used to create a randomized QCM in a .md file, then to export it with pandoc.QCM file descriptionFiles should be utf-8 encoded text files with .md extensions.They should respect theexampleformat :# title## partthe text of the part### question with multiple choicesoptional sub text. Can contains code, latex, whatever- [x]right answer- [ ]wrong answer a- [ ]wrong answer b### question with text allowed-[t]Known limitationsOnly a little subset of markdown is supported.A title must be foundtitle, parts and questions can't have empty string after#,##or###tag## valid part

##
wrong partCode blocks with triple backticks are supported not~~~. Those will creates bugs.# title## part### question```python# commentdeff():return1```is valid.but :# title## part### question```python# commentdeff():return1```**is not valid.**

The `# comment` line will be interpreted as a new title etc.
Package: qcobj
QCOBJQCOBJ a Python package to handle quantity-aware configuration filesIn shortA Python package to help scientists and researchers to add physical quantities
to the configuration files they use in their computer programs.
Highlights:Parameter values are validated against user defined specifications to
ensure they are in the correct range and eventually converted to the
requested unit of measurement.A graphical user interface to display and modify configuration file content
is included.More than two configuration files can be compared highlighting the
differences between them.Install QCOBJQCOBJ can be installed without the graphical user interface:pip3 install git+https://bitbucket.org/bvidmar/qcobjor with the GUI:pip3 install git+https://bitbucket.org/bvidmar/qcobj[with_pyside2]orpip3 install git+https://bitbucket.org/bvidmar/qcobj[with_pyqt5]QCOBJ was published onSoftwareX, Volume 7, January–June 2018, Pages 347-351.Where is the documentation?Here!Who do I talk to?Roberto VidmarNicola Creati
Package: qcodes
QCoDeSQCoDeS is a Python-based data acquisition framework developed by the
Copenhagen / Delft / Sydney / Microsoft quantum computing consortium.
While it has been developed to serve the needs of nanoelectronic device
experiments, it is not inherently limited to such experiments, and can
be used anywhere a system with many degrees of freedom is controllable
by computer.
To learn more about QCoDeS, browse ourhomepage.To get a feeling of QCoDeS read15 minutes to QCoDeS,
and/or browse the Jupyter notebooks indocs/examples.QCoDeS is compatible with Python 3.9+ (3.9 soon to be deprecated). It is
primarily intended for use from Jupyter notebooks, but can be used from
traditional terminal-based shells and in stand-alone scripts as well. The
features inqcodes.utils.magicare exclusively for Jupyter notebooks.Default branch is now mainThe default branch in QCoDeS has been renamed to main.
If you are working with a local clone of QCoDeS you should update it as follows:Rungit fetch originandgit checkout mainRungit symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/mainto update your HEAD reference.InstallIn general, refer toherefor installation.DocsRead ithere.
Documentation is updated and deployed on every successful build in main.We use sphinx for documentations, makefiles are provided both for
Windows, and *nix, so that you can build the documentation locally.Make sure that you have the extra dependencies required to install the docspipinstall-rdocs_requirements.txtGo to the directorydocsandmakehtmlThis generate a webpage, index.html, indocs/_build/htmlwith the
rendered html.QCoDeS LoopThe modulesqcodes.data,qcodes.plots,qcodes.actions,qcodes.loops,qcodes.measure,qcodes.extensions.slackandqcodes.utils.magicthat were part of QCoDeS until version 0.37.0.
have been moved into an independent package called qcodes_loop.
Please see it’srepositoryanddocumentationfor more information.For the time being it is possible to automatically install the qcodes_loop
package when installing qcodes by executingpip install qcodes[loop].Code of ConductQCoDeS strictly adheres to theMicrosoft Open Source Code of ConductContributingThe QCoDeS instrument drivers developed by the members of
the QCoDeS community but not supported by the QCoDeS developers are contained inhttps://github.com/QCoDeS/Qcodes_contrib_driversSeeContributingfor general information about bug/issue
reports, contributing code, style, and testing.LicenseSeeLicense.
Package: qcodes-contrib-drivers
This repository contains QCoDeS instrument drivers developed by members of the QCoDeS community.
These drivers are not supported by the QCoDeS developers but instead supported on a best effort basis
by the developers of the individual drivers.Default branch is now mainThe default branch in qcodes_contrib_drivers has been remamed to main.
If you are working with a local clone of qcodes_contrib_drivers you should update it as follows.Rungit fetch originandgit checkout mainRungitsymbolic-refrefs/remotes/origin/HEAD refs/remotes/origin/mainto update your HEAD reference.Getting startedPrerequisitesThe drivers in this repository work with and heavily depend on QCoDeS. Start by installingQCoDeS.InstallationInstall the contrib drivers withpippip install qcodes_contrib_driversDrivers documentationThe documentations of the drivers in this repository can be readhere.ContributingThis repository is open for contribution of new drivers,
as well as improvements to existing drivers. Each driver should
contain an implementation of the driver and a Jupyter notebook showing how the
driver should be used. In addition we strongly encourage writing tests for the drivers.
An introduction for writing tests with PyVISA-sim can be found in the QCoDeS documentation linked
below.Drivers are expected to be added toqcodes_contrib_drivers/drivers/MakerOfInstrument/folder
while examples should be added to thedocs/examplesfolder and tests placed in theqcodes_contrib_drivers/tests/MakerOfInstrumentfolder. Please follow naming conventions for
consistency.For general information about writing drivers and how to write tests refer to theQCoDeS documentation.
Especially the exampleshereare useful.LICENSEQCoDeS-Contrib-drivers is licensed under the MIT license except theTektronix AWG520andTektronix Keithley 2700drivers which are licensed under the GPL 2 or later License.
Package: qcodes-loop
qcodes_loopcontains modules that used to be part of QCoDeS but were deprecated and removed in the spring of 2023.
The last QCoDeS release supporting usage of theLoopand associated modules wasv0.37.0.The modules in question are:qcodes_loop.data,qcodes_loop.plots,qcodes_loop.actions,qcodes_loop.loops,qcodes_loop.measure,qcodes_loop.extensions.slackandqcodes_loop.utils.magicThe code in this repository is provided as-is but not actively maintained by the QCoDeS developers.
We are happy to merge bug fixes contributed but no active development on this code is planned.Please reach out to the QCoDeS development team if you are interested in maintaining this code repository.