Skip to main content

A Python Framework for the Dynamics of Coherent Ising Machine

Project description

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

Project details


Download files

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

Source Distribution

pycim_simulator-0.1.0.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycim_simulator-0.1.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file pycim_simulator-0.1.0.tar.gz.

File metadata

  • Download URL: pycim_simulator-0.1.0.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pycim_simulator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 230fba22ff2873ec9b968a692eaa8b24b50059c5935812d1eebee44c2b869aaf
MD5 3525f4e2a1001fdd57a258366d04b5b5
BLAKE2b-256 976144e5f13689ea022a4319f7fa59eb48297ebcfb0c38ebaf951506439fe2c0

See more details on using hashes here.

File details

Details for the file pycim_simulator-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pycim_simulator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a766b86d3eb9b303b2ecfe62b118b507636d23e77da1d63e3a5324b79c0167a2
MD5 beaf26debbd446b83d30aceb3912329d
BLAKE2b-256 4bf2bcef0bc210b29b814ece48b8fa1a88563fe4845b90de393568f8f144bdc4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page