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 hashes)
Built Distribution
Close
Hashes for Symqui-0.2.dev0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10edbc9282a0cce724a3afedf7d673c086634049fe40565d2c747d252499a117 |
|
MD5 | 834e0bc4a551c837f86cc0e3c8bb54ef |
|
BLAKE2b-256 | 85b9701076f4c108e4f6d4239cecd9d335a2fe0a460678682f8067e7d639fbcd |