No project description provided
Project description
#-------------------------------------------------------
# SYMQUI: (SYMbolic Quantum User Interface)
#-------------------------------------------------------
# A symbolic quantum computing interface to qubo-solver
# given a string expression of binary {0,1} variable,
# symque will present the qubo-coefficient to be solved
# by a qubo solver, such as wildqat or qbsolve
#
# Work flow:
# ---------
#
# Eq_string -> Ekx -> Ekq -> E2q -> {hi, Jij}
#
# {string_equation}->|QSymbolic|->{qubo_coeffs}->|qubo_solver|->{Results}
#
# legend: {... data ...}, | ... process ...|
----------
howto use:
----------
# import the library
>>import symqui as sq
# define a qubo extractor object, eg.
>> qb=sq.symqx()
# enter the problem in string, eg.
>> qb.eq_str = '2*(1+q0*q1*q2*q3)'
# extract qubo coefficients
>> J=qb.get_qubo_coeffs()
# define solver
>>import wildqat as wq
>>a = wq.opt()
# enter qubo coeffs into solver
>>a.qubo=J
# solve the problem
>>a.solve()
# SYMQUI: (SYMbolic Quantum User Interface)
#-------------------------------------------------------
# A symbolic quantum computing interface to qubo-solver
# given a string expression of binary {0,1} variable,
# symque will present the qubo-coefficient to be solved
# by a qubo solver, such as wildqat or qbsolve
#
# Work flow:
# ---------
#
# Eq_string -> Ekx -> Ekq -> E2q -> {hi, Jij}
#
# {string_equation}->|QSymbolic|->{qubo_coeffs}->|qubo_solver|->{Results}
#
# legend: {... data ...}, | ... process ...|
----------
howto use:
----------
# import the library
>>import symqui as sq
# define a qubo extractor object, eg.
>> qb=sq.symqx()
# enter the problem in string, eg.
>> qb.eq_str = '2*(1+q0*q1*q2*q3)'
# extract qubo coefficients
>> J=qb.get_qubo_coeffs()
# define solver
>>import wildqat as wq
>>a = wq.opt()
# enter qubo coeffs into solver
>>a.qubo=J
# solve the problem
>>a.solve()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Symqui-0.2.dev0.tar.gz
(4.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Symqui-0.2.dev0.tar.gz.
File metadata
- Download URL: Symqui-0.2.dev0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8132e624f67c10e7d35cea0cf1460b6119b7486bb7052cc5afea62769e0b06b
|
|
| MD5 |
ec2d96ded35ca8ea27adbb69e665bfa9
|
|
| BLAKE2b-256 |
31268a0dd9b673dc7d90e18ba8ea57644c5fa2083cee776927896a18e881598f
|
File details
Details for the file Symqui-0.2.dev0-py3-none-any.whl.
File metadata
- Download URL: Symqui-0.2.dev0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10edbc9282a0cce724a3afedf7d673c086634049fe40565d2c747d252499a117
|
|
| MD5 |
834e0bc4a551c837f86cc0e3c8bb54ef
|
|
| BLAKE2b-256 |
85b9701076f4c108e4f6d4239cecd9d335a2fe0a460678682f8067e7d639fbcd
|