Skip to main content

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()


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Symqui, version 0.2.dev0
Filename, size File type Python version Upload date Hashes
Filename, size Symqui-0.2.dev0-py3-none-any.whl (5.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size Symqui-0.2.dev0.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page