Wildcat Python SDK
===============================
version number: 0.0.10
author: Shumpei Kobayashi
Overview
--------
Wildcat Python SDK to Use Annealers
Installation / Usage
--------------------
To install use pip:
$ pip install wildcat
Or clone the repo:
$ git clone https://github.com/mdrft/wildcat.git
$ python setup.py install
Contributing
------------
TBD
Example
-------
To find an optimal arrangement with wildcat remote server:
```python
from wildcat.util.matrix import random_symmetric_matrix
from wildcat.solver.ising_hamiltonian_solver import IsingHamiltonianSolver
Jij = random_symmetric_matrix(size=40)
solver = IsingHamiltonianSolver(ising_interactions=Jij)
def callback(arrangement):
e = solver.hamiltonian_energy(arrangement)
print("Energy: ", e)
print("Spins: ", arrangement)
solver.solve(callback)
```
To find an optimal arrangement with local annealer, specify LocalEndpoint:
```python
from wildcat.network.local_endpoint import LocalEndpoint
solver.solve(callback, endpoint=LocalEndpoint())
```
You can adjust annealing strategy:
```python
from wildcat.network.local_endpoint import LocalEndpoint
from wildcat.annealer.simulated.simulated_annealer import SimulatedAnnealer
from wildcat.annealer.simulated.single_spin_flip_strategy import SingleSpinFlipStrategy
from wildcat.annealer.simulated.temperature_schedule import TemperatureSchedule
from wildcat.util.matrix import hamiltonian_energy
def update_callback(q):
print(q)
print(hamiltonian_energy(q))
schedule = TemperatureSchedule(initial_temperature=10, last_temperature=0.1, scale=0.8)
strategy = SingleSpinFlipStrategy(repetition=10, update_callback=update_callback)
annealer = SimulatedAnnealer(schedule=schedule, strategy=strategy)
local_endpoint = LocalEndpoint(annealer=annealer)
```
Metadata
Release files for wildcat 0.0.13
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 | |
|---|---|---|---|---|
| wildcat-0.0.13.tar.gz | 8.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wildcat-0.0.13-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 20.7 kB
Release files / wildcat-0.0.13.tar.gz
| Download URL | wildcat-0.0.13.tar.gz |
|---|---|
| Size | 8.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0004679bc907f9a1f629ee69fa0dbeab5a428a4bf8ea40e67a77f123d30ceb8f
|
|
BLAKE2b-256 checksum How to use checksums |
a6716033ab1a4b93803c596059313ed4e8c1d4b42031c6be1fac920af8087eb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / wildcat-0.0.13-py2.py3-none-any.whl
| Download URL | wildcat-0.0.13-py2.py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
073a6739a83a3a8b48388302747c185606b4324f6b3ea82a5c51f2a36d898d57
|
|
BLAKE2b-256 checksum How to use checksums |
a62dae477ca2bf6d307e297102a8c0790c19387be9105b3ce36a3cce8b3904e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for wildcat 0.0.13
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.