PyCIM
PyCIM is the first simulator that can produce the dynamic behavior of CIM. PyCIM effectively capture some characteristic phenomena of DOPO and CIM, including a spontaneous symmetry breaking, threshold behavior, gain saturation, and the process of CIM solving MAX-CUT problems. Additionally, it is built-in time-varying coupling strengths and pump schedules. Moreover, PyCIM can be used for analyzing the impact of parameters on the performance of CIM, and guiding the design and optimization of actual physical systems.
Requirements
To use the simulator, Python 3.7.7 or above is required.
The following packages are required by the installation:
- matplotlib==3.5.3
- numpy==1.21.5
- scipy==1.7.3
method 1:
pip install pycim-simulator
method 2:
The first step is cloning the repository:
git clone https://github.com/shadowforwind/pycim-simulator.git
Then, install the following packages:
cd pycim-simulator
pip install -r requirements.txt
Catalog
└─simulator
│ architecture.png
│ display.ipynb
│ README.md
│ requirements.txt
│
└─pycim
│ analyzer.py
│ competitor.py
│ sampler.py
│ __init__.py
│
├─data
│ │ 128.txt
│ │ 20.txt
│
├─simulation
│ │ device.py
│ │ setup.py
│ │ simulate.py
│ │ solver.py
│ │ __init__.py
│ │
│ ├─model
│ │ │ c_number.py
│ │ │ discrete.py
│ │ │ meanFiled.py
│ │ │ __init__.py
│
├─utils
│ │ const.py
│ │ bias.py
│ │ file_J.py
│ │ getIsingEnergy.py
│ │ __init__.py
Getting started with pycim
The simplest way of familiarize with the pycim-simulator is by exploring the demo case provided in the file ''display.ipynb''. The file ''display.ipynb'' provides step-by-step description of the main commands to: initialize input, transform model, single simulation, result measurement, or solving the Max-Cut problem.
How to contact us
Thanks for your interest in the project! If you have a question or want to discuss something, feel free to send an email to Peixiang Li, Dongyang Wang, or to Junjie Wu.
How to cite
When using pycim simulator for research projects, please cite:
Li, P., Cheng, H., Liu, Y., Wang, D., Wu, J. (2024). PyCIM: A Python Framework for the Dynamics of Coherent Ising Machine. In: Huang, DS., Zhang, C., Guo, J. (eds) Advanced Intelligent Computing Technology and Applications. ICIC 2024. Lecture Notes in Computer Science, vol 14871. Springer, Singapore. https://doi.org/10.1007/978-981-97-5609-4_15
Metadata
Release files for pycim-simulator 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pycim_simulator-0.1.4.tar.gz | 14.2 kB | Without provenance | Details for pycim_simulator-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pycim_simulator-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for pycim_simulator-0.1.4-py3-none-any.whl |
Total release size: 32.0 kB
Release files / pycim_simulator-0.1.4.tar.gz
| Download URL | pycim_simulator-0.1.4.tar.gz |
|---|---|
| Size | 14.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1642fbc7e3a7d17a850f762006966aeeaf889e958b74a97d91d9cc5f2bfeea10
|
|
BLAKE2b-256 checksum How to use checksums |
07307904480b28ec42dfdbdba08ce29718d2ac45c73ae9ec38343b4432fc7aa1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / pycim_simulator-0.1.4-py3-none-any.whl
| Download URL | pycim_simulator-0.1.4-py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c81d5d4277ed5a241a113b1957346b2a949bd09023b87269d9be688c97e2c303
|
|
BLAKE2b-256 checksum How to use checksums |
ce4508be036d8c37245d01f0861b1be0ab89459a2e4d488f513871f5771e9bba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Security for pycim-simulator 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.