Saravanan666/pypi-org huggingface dataset:
Package: qiskit-qutrit-calibration
Qutrit CalibrationA qutrit experiment extension forQiskit Experiments.  This package allows for straightforward calibration of single qutrit gates.Note:A word of caution: this package is an alpha release and subject to breaking API changes without much notice.Once installed it can imported usingimportqiskit_qutrit_calibrationInstallationThis package can be in one of three ways:Installed via pip aspipinstallqiskit-qutrit-calibrationInstalled from the downloaded repository using pip ascdqiskit-qutrit-calibration
pipinstall.Installed directly using the github urlpipinstallgit+https://github.com/qiskit-community/qutrit-calibrationUsageThis package allows users to spin up their own calibration experiments for single qutrit gatesSX12,X12,Sy12,Y12, andRZ12.  The experiments to tune up these gates include:RoughEFFrequencyCalRoughEFAmplitudeCalNarrowBandSpectroscopyCalRoughEFXDragCalFineEFXAmplitudeCalSimply create a newQutritCalibrationsobject usingcals=QutritCalibrations.from_backend(backend)Then execute an experiment using the instantiatedQutritCalibrations, aTupleof qubit indices, and backend to run on.  For example,fromqiskit_qutrit_calibrationimportlibraryexp=library.RoughEFFrequencyCal((qubit_index),calibrations=cals,backend=backend)Development ScriptsThis package includes several pre-configuredtoxscripts for automating
development of your package. These commands can be run from the command linecdqutrit-calibration
tox-e<command>CommandDescription``py`Run unit tests for the package usingstestrblackAuto-format your package files usingBlacklintRun PyLint on your package to check code formatting. Note that linting will fail if runningblackwould modify any filesdocsGenerate documentation for the package using SphinxIf you do not already have the tox command installed, install it by runningpipinstalltoxTesting Your PackageThis package is configured withstestrandtoxscripts to run unit tests
added to thequtrit-calibration/testfolder.These can be run directly viastestrusing the commandcdqutrit-calibration
stestrrunOr using to tox scripttox -e pyto install all dependencies and run the tests
in an isolated virtual environment.To add tests to your package you must including them in a files prefixed astest_*.pyin thetest/folder or a subfolder. Tests should be written
using theunittestframework to make a test class containing each test
as a separate method prefixed astest_*.For example:classBasicTests(unittest.TestCase):"""Some basic tests for Qiskit Qutrit Calibration"""deftest_something(self):"""A basic test of something"""# Write some code heresome_value=...target=...self.assertTrue(some_value,target)Documenting Your PackageYou can add documentation or tutorials to your package by including it in thequtrit-calibration/docsfolder and building it locally using
thetox -edocscommand.Documentation is build using Sphinx. By default will include any API documentation
added to your packages main__init__.pyfile.LicenseApache License 2.0
Package: qiskit-rng
Qiskit Random Number GenerationQiskit is an open-source framework for working with noisy intermediate-scale
quantum computers (NISQ) at the level of pulses, circuits, and algorithms.This project contains support for Random Number Generation usingQiskitandIBM Quantum Experiencebackends. The
resulting raw numbers can then be passed toCambridge Quantum Computing(CQC)
randomness extractors to get higher-quality random numbers.InstallationYou can install the project using pip:pipinstallqiskit_rngPIP will handle all python dependencies automatically, and you will always
install the latest (and well-tested) version.UsageSetting up the IBM Quantum ProviderYou will need setup your IBM Quantum Experience account and provider in order to
access IBM Quantum backends. Seeqiskit-ibmq-providerfor more details.Generating random numbers using an IBM Quantum backendTo generate random numbers using an IBM Quantum backend:fromqiskitimportIBMQfromqiskit_rngimportGeneratorIBMQ.load_account()rng_provider=IBMQ.get_provider(hub='MY_HUB',group='MY_GROUP',project='MY_PROJECT')backend=rng_provider.backends.ibmq_ourencegenerator=Generator(backend=backend)output=generator.sample(num_raw_bits=1024).block_until_ready()print(output.mermin_correlator)Theoutputyou get back contains useful information such as the
Weak Source of Randomness (result.wsr) used to generate the circuits, the resulting bits
(result.raw_bits), and the Mermin correlator value (result.mermin_correlator).Using CQC extractors to get highly random outputIf you have access to the CQC extractors, you can feed the outputs from the previous
step to obtain higher quality random numbers:random_bits=output.extract()The code above uses the default parameter values, but the extractor is highly
configurable. See documentation for some use case examples and parameter suggestions.DocumentationUsage and API documentation can be foundhere.LicenseApache License 2.0.
Package: qiskit-scheduling-extension
Qiskit Scheduling Extension PluginThis repository contains an extension library of pass manager plugins that can be used in thescheduling stageof Qiskit transpiler.Install and Use pluginTo use the scheduling extension plugin first install qiskit-scheduling-extension:pipinstallqiskit-scheduling-extensionOnce you have the plugin package installed you can use the plugin via thescheduling_methodargument on Qiskit'stranspile()function. For example,
if you wanted to use thecompactscheduling method to compile a 15 qubit quantum
volume circuit for a backend you would do something like:fromqiskitimporttranspilefromqiskit.circuit.libraryimportQuantumVolumefromqiskit.providers.fake_providerimportFakePragueqc=QuantumVolume(15)qc.measure_all()backend=FakePrague()transpile(qc,backend,scheduling_method="compact")Authors and CitationThe qiskit-scheduling-extension is the work ofmany peoplewho contribute to the project at different levels.
Package: qiskit-superstaq
qiskit-superstaqThis package is used to access Superstaq via a Web API throughQiskit. Qiskit programmers
can take advantage of the applications, pulse level optimizations, and write-once-target-all
features of Superstaq with this package.qiskit-superstaqisavailable on PyPIand can be installed with:pip install qiskit-superstaqPlease note that Python version3.8or higher is required. See installation instructionshere.Creating and submitting a circuit through qiskit-superstaqimportqiskitimportqiskit_superstaqasqsstoken="Insert superstaq token that you received from https://superstaq.infleqtion.com"superstaq=qss.superstaq_provider.SuperstaqProvider(token)backend=superstaq.get_backend("ibmq_qasm_simulator")qc=qiskit.QuantumCircuit(2,2)qc.h(0)qc.cx(0,1)qc.measure(0,0)qc.measure(1,1)print(qc)# Submitting a circuit to "ibmq_qasm_simulator". Providing the "dry-run" method parameter instructs Superstaq to simulate the circuit, and is available to free trial users.job=backend.run(qc,shots=100,method="dry-run")print(job.result().get_counts())
Package: qiskit-toqm
Qiskit TOQMCIstatuspip buildswheelsQiskit Terratranspiler passes for theTime-Optimal Qubit Mapping(TOQM) algorithm.InstallationThis package is available on PyPI asqiskit-toqm.To install it, run:pipinstallqiskit-toqmAlternatively,Clone this repository recursively.Install it from source:pip install .Licensesqiskit-toqm is provided under the Apache 2.0 license that can be found in
the LICENSE file.pybind11 is provided under a BSD-style license that can be found in the LICENSE_pybind11
file.By using, distributing, or contributing to this project, you agree to the
terms and conditions of both licenses.
Package: qiskit-utils
qiskit-utilsqiskit-utils is a library containing utility, quality of life methods for qiskit.current methodsparsing resultsparsing countsinserting instructions and gates into circuit (in any location not just append the gate to the circuit)Inserting instructionsfromqiskit_utilsimportinsert_instructioninstruction=Measure()insert_instruction(circuit,instruction,(circuit.qubits[0],),(circuit.clbits[1],),index)QuantumCircuitEnhancedfromqiskit.circuit.libraryimportiSwapGatefromqiskit_utilsimportQuantumCircuitEnhancedqc=QuantumCircuitEnhanced(2)qc.insert(iSwapGate(),(0,1),(,),index)Result parsingparse_result method allows to find the counts for each specific qubit individually
(and allows for easy access to check counts for that one specific qubit, independent of the other qubit states)qc=QuantumCircuit(1,1)qc.x(0)qc.measure(0,0)backend=Aer.get_backend("aer_simulator")transpiled_circuit=transpile(qc,backend)result=backend.run(transpiled_circuit).result()parsed_counts=parse_result(result,qc)# parsed_counts = {0: {'0': 0, '1': 1024}}2 return types are possible, with using the flag indexed_results=True resulting directory keys (the most upper level)
will be indexes of qubits (indexes will be same as in qc.qubits), with the flag set to false qubits will be returned
indexed by the qubit object itself (can be received either from qc.qubits[i] or QuantumRegister()[i])Result parsing with countsqc=QuantumCircuit(2)creg1=ClassicalRegister(1)creg2=ClassicalRegister(1)qc.add_register(creg1)qc.add_register(creg2)qc.x(0)qc.measure(0,creg1[0])qc.measure(1,creg2[0])backend=Aer.get_backend("aer_simulator")transpiled_circuit=transpile(qc,backend)result=backend.run(transpiled_circuit).result()parsed_counts=parse_counts(result,qc)# parsed_counts = {"10": 1024} while the get_counts from qiskit would return {"0 1": 1024}Note, qubits that had no measurements found for them are marked as - in the bitstringMore examplesexamples of usage can be found in a testing libraryqiskit-check
Package: qiskit-xyz2pdb
qiskit-xyz2pdbThis program is designed primarily to convert XYZ files from the results ofQiskit's protein folding algorithm, but may also work with other similar XYZ files for protein coordinates. There are two options for the output: 1) a hetero atom (HETATM) format with connect records (CONECT), and 2) a conventional alpha carbon trace protein pdb format. In both outputs, each set of coordinates corresponds to the alpha carbon of each residue in the sequence.InstallTheqiskit-xyz2pdbpackage is available on the Python Package Index and Conda and can be installed with the following command line:# Install the package through PyPI
$ pip install qiskit-xyz2pdb

# Install the package through the Conda package manage
$ conda install qiskit-xyz2pdbFeaturesThe hetero atom format is most useful for quick visualization, using a program such as NGL viewer. Note: this option assumes that the XYZ coordinates are all consecutively bound forming a continous single chain; it assumes that there are no side chains, and the CONECT records reflect this. How to run with this option:$ qiskit-xyz2pdb --in-xyz inputfile.xyz --out-pdb outputfile.pdb --hetero-atomsThe conventional alpha carbon trace format is more versatile and can be used for further research beyond visualization - such as reconstructing the full backbone and sidechains, adding a force field, and then performing molecular dynamics simulations. How to run with this option:$ qiskit-xyz2pdb --in-xyz inputfile.xyz --out-pdb outputfile.pdb --alpha-c-traces
Package: qit
IntroductionQuantum Information Toolkit (QIT) is a free, open source Python 3 package for various quantum
information and computing -related purposes, released under GNU GPL v3.  It is a descendant of the
MATLAB Quantum Information Toolkit, and has considerably more functionality.The latest version can be found onour website.The toolkit is installed from the Python Package Index by$pipinstallqitor by cloning the Git repository, and installing directly from there:$gitclonehttps://git.code.sf.net/p/qit/code-pythonqit$cdqit$pipinstall.For interactive use, we recommend theIPython shell.To get an overview of the features and capabilities of the toolkit, run$pythonqit/examples.pyLicenseQIT is released under the GNU General Public License version 3.
This basically means that you can freely use, share and modify it as
you wish, as long as you give proper credit to the authors and do not
change the terms of the license. See LICENSE.txt for the details.Design notesThe main design goals for this toolkit are ease of use and comprehensiveness. It is primarily meant
to be used as a tool for experimentation, hypothesis testing, small simulations, and learning, not
for computationally demanding simulations. Hence the efficiency of the algorithms used is not a
number one priority.
However, if you think an algorithm could be improved without compromising accuracy or
maintainability, please let the authors know or become a contributor yourself!ContributingQIT is an open source project and your contributions are welcome.
To keep the code readable and maintainable, we ask you to follow these
coding guidelines:Fully document all the modules, classes and functions using docstrings
(purpose, calling syntax, output, approximations used, assumptions made…).
The docstrings may contain reStructuredText markup for math, citations etc.
Use the Google docstring style.Add relevant literature references todocs/refs.biband cite them in the function
or module docstring usingsphinxcontrib-bibtexsyntax.Instead of using multiple similar functions, use a single function
performing multiple related tasks, see e.g.qit.state.State.measure.Raise an exception on invalid input.Use variables sparingly, give them descriptive (but short) names.Use brief comments to explain the logic of your code.When you add new functions also add tests for validating
your code. If you modify existing code, make sure you didn’t break
anything by checking that the tests still run successfully.
Package: qitensor
This module is essentially a wrapper for numpy that uses semantics useful for
finite dimensional quantum mechanics of many particles.  In particular, this
should be useful for the study of quantum information and quantum computing.
Each array is associated with a tensor-product Hilbert space.  The underlying
spaces can be bra spaces or ket spaces and are indexed using any finite
sequence (typically a range of integers starting from zero, but any sequence is
allowed).  When arrays are multiplied, a tensor contraction is performed among
the bra spaces of the left array and the ket spaces of the right array.
Various linear algebra methods are available which are aware of the Hilbert
space tensor product structure.Component Hilbert spaces have string labels (e.g.qubit('a')*qubit('b')gives|a,b>).Component spaces are finite dimensional and are indexed either by integers or
by any sequence (e.g. elements of a group).In Sage, it is possible to create arrays over the Symbolic Ring.Multiplication of arrays automatically contracts over the intersection of the
bra space of the left factor and the ket space of the right factor.Linear algebra routines such as SVD are provided which are aware of the
Hilbert space labels.
Package: qiuwenbot
Qiuwen Baike bot / 求闻百科机器人Qiuwen Baikebot. /求闻百科机器人。Features / 功能Comprehensive Cleanup / 综合治理Cleaning up illegal references / 清理非法参考文献Cleaning up unsupported HTML tags / 清理不支持的HTML标签Cleaning up expired templates / 清理过期模板Removing illegal flags of the Taiwan authorities / 清理台湾当局非法旗帜Removing illegal era names of the Taiwan authorities / 清理台湾当局非法年号Correcting terms related to Taiwan / 修正涉台用语Correcting terms related to Hong Kong / 修正涉港用语Correcting terms related to politics / 修正涉政用语Correcting terms related to "Cultural Revolution" / 修正“文革”用语Marking redundant entries caused by differences between Simplified and Traditional Chinese / 标记简繁差异造成的重复条目Disclaimer / 免责声明Qiuwen Baike® is a trademark or registered trademark of the operator of Qiuwen Baike website or its affiliated entities. This project uses the trademark legitimately based on Article 59 of the "Trademark Law of the People's Republic of China". When using it in the modified version of this project, one should observe the "Trademark Law". / 求闻百科®是求闻百科网站运营者或其关联实体的商标或注册商标，本项目基于《中华人民共和国商标法》第五十九条对该商标正当使用。在本项目的修改版本中使用时，应注意遵守《商标法》。
Package: qiwi-api
qiwi_apiqiwi_api - модуль для взаимодействия с Qiwi APIДокументацияДокументация на сайте QiwiУстановка$pipinstall--upgradeqiwi_apiПримерfromqiwi_apiimportQiwiapi=Qiwi('your_token_here')print(api.balance(only_balance=True))
Package: qiwi-handler
полная документация еще не вышла, но есть....Эта штука работает на декораторе, который отлавливает транзакции кошелька.
Для запуска есть client.run(), и await client.idle() соответсвенно. Оба они являются ассинхронными, но run()
создает новый луп, и не нуждается в запуске с awaitОЧЕНЬ ВАЖНО!Время на комьютере должно быть правильным!иначе - программа ничего не будет ловить!пример:from client import Client
from objects.account_api.types.history import History
client = Client(TOKEN)

@client.check_pay(wallets=[PHONE NUMBER], 
                    amount=5, may_be_bigger=True)
def func(pay: History):
    print(pay)

client.run()типы:основные типы:
History, UserInfoимпорт:from qiwi_handler.types import History, UserInfoЕсли вам IDE не помогает в том, что может возвращать функция, или вам надо полностью изучить переменную:https://developer.qiwi.com/ru/qiwi-wallet-personal/index.html#restrictionsHistory (История платежей)(* - обязательно)@client.check_pay() - выше показанный обработчик - возвращает Historywallet: str- (номер кошелька(телефона))rows: int = 5- (Количество последних транзакций),operation: str = None- (Тип операций в отчете, для отбора (ALL, IN, OUT, QIWI_CARD)),sources: list = None- (Список источников платежа, для фильтра (QW_RUB, QW_USD, QW_EUR, CARD, MK)),start_date: str = None- Начальная дата поиска платежей (DateTime URL-encoded),end_date: str = None- Конечная дата поиска платежей (DateTime URL-encoded),next_txn_date: str = None- Дата транзакции для начала отчета(DateTime URL-encoded),next_txn_id: int = None- Номер транзакции для начала отчетаclient.history(wallet: str) - возвращает array[History]message: str(строгая проверка на содержание окна "Комментарий к переводу"),* wallets: list(список из номеров кошелька (телефона), с который идет парсинг),amount: float(строгая проверка на сумму, которая указана в total (с уч. комисии)),may_be_bigger: bool = True(превращает amount в не строгую проверку, и пропускает суммы выше),check_status: bool = True(проверка на успешность операции),operation: str = "ALL"(Тип операций в отчете, для отбора (ALL, IN, OUT, QIWI_CARD)),updates_per_minute: int = 50(ВАЖНО! болше 99 в минуту вам не даст поставить сисетма, т.к. если значение
будет более 100 - ваш апи кей заблокирут на 5 минут. Если вам не достаточно скорости - используйте большое значение
в rows_per_update),rows_per_update: int = 5(Количество последних транзакций, которые передаются нобработку хендлеру,
больше 50 поставить не выйдет)UserInfo (Профиль пользователя)(* - обязательно)await client.get_current() - возарвщает UserInfoauth_info_enabled: bool = True- (Логический признак выгрузки настроек авторизации),contract_info_enabled: bool = True- (Логический признак выгрузки данных о вашем QIWI кошельке),user_info_enabled: bool = True- (Логический признак выгрузки прочих пользовательских данных.)
Package: qixinApi
齐欣云服 API操作方法账户列表查询.get_partner_info_list()订单详情.get_order(insure_num)投保单列表.list_order()查询昨日投保单.list_yesterday_order()fromqixinApi.qixinApiimportQxSdkpId=''sKey=''client=QxSdk(partner_id=pId,secret_key=sKey)# client = QxSdk(partner_id=pId, secret_key=sKey, env_type='test')try:foriteminclient.list_order(page_index=1,page_size=1)['orders']['data']:detail=client.get_order(item['insureNum'])print(detail['orderDetail']['applicant']['cName'])print(detail['orderDetail']['productName'])finally:client.close()
Package: qi.xmpp.botfarm
Introduction============qi.xmpp.botfarm is a twisted based server that provides xmlrpc services to manage a collection of jabber-based helpdesks. It is currently used at chatblox.com_... _chatblox.com: http://chatblox.comInstallation============Installing with buildout------------------------If you are using `buildout`_ to manage your instance installing qi.xmpp.botfarm is very simple. You can install it by adding a new section, botfarm and include it in the parts section::[botfarm]recipe = zc.recipe.eggeggs = qi.xmpp.botfarmqi.xmpp.clientqi.xmpp.adminA link will be created in the bin directory pointing to the botfarm executable... _buildout: http://pypi.python.org/pypi/zc.buildoutInstalling without buildout---------------------------You can install qi.xmpp.botfarm easily using the easy_install command from setuptools. This will also install dependencies.Usage=====botfarm is called with the path to an xml configuration file as an argument. Copy config.xml in the docs folder and customize to your needs.Changelog=========0.1 - Unreleased----------------* Initial release
Package: qi.xmpp.client
Introductionqi.xmpp.client is a simple xmpp (jabber) bot written on the twisted framework. By itself it does almost nothing but provides a good base on which to create your own bot by simply overriding the functions you want to support. The following xmpp extensions are supported:XEP-0030, Service discoveryXEP 0153 and XEP-0054, VCardsXEP-0095 and XEP-0065, file transfers through SOCKS5XEP-0092, Software versionXEP-0199, PingsChangelog0.1 - UnreleasedInitial release
Package: qiyas
qiasqias is lightweight easy-to-use non-opinionated unit conversion Python library for scientists and engineers. It is based on graph theory and allows easy customization and addition of new units via script. Each unit need to be only defined by one existing unit. qias is smart enough to figure out the rest.Important noteThis is a very early release to proove the concept. Everything is working as expected and there are no issues. conversion tables need to be added. Currently, there are some units for length, mass, and volume for testing.PhilosophyLightweight: it only relies on thenetworkxpackage to handle graph operations andvarnameto identify variable names.Easy-to-use: customize it easily with new units.non-opinionated: It does not assume anything about your data. It does not create new data type. You can pass numpy array (or datatype that can be multiplied by a number) to it without issue.InstallationInstall it in your environment by running the commandpip install qiyasGetting startedfromqiyasimportqs# Typical usex=10x_cm=qs.convert(x,'m','cm')# Immediate use (Python 3.8+)x_m=10x_cm=qs.to(x_m,'cm')# Get multiplier informationmultiplier_info=qs.get_multiplier('m','cm')ContributionContributions are welcome, especially for unit tables. Create an issue first to discuss architectural change.MIT LicenseCopyright (c) 2021 Mustafa Al IbrahimPermission 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: qiyu-api
QiYu-API奇遇科技 Python API 集合当前已经合并ali_sms_api (阿里云短信)apns_sdk_py (Apple APNs 推送)dtk_api     (大淘客接口)mob_api     (掌淘科技接口)py_apple_signin (Apple Sign in 接口)tbk_api (淘宝客标准化的类型)ztk_api (折淘客接口)
Package: qjobs
qjobsqjobs is an attempt to get a cleaner and more customizable output than the one
provided by qstat (Sun Grid Engine).Quick installationqjobsis available on PyPI. It is compatible with Python3.6 and higher.Installation ofqjobscan be done withpip:python3 -m pip install -U --user qjobsThat’s it! If the directory where pip installs packages (usually~/.local/bin) is in yourPATHenvironment variable, you only have to
runqjobsfrom the command line to launch the wrapper. Enjoy!