Skip to content

ken-nakanishi/nftopt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nakanishi-Fujii-Todo method for scipy.optimize

Build Status

This is Nakanishi-Fujii-Todo method (arXiv:1903.12166) for scipy.optimize.minimize.

The optimization function have to satisfy three conditions written in [1].

install

pip install nftopt

or

pip3 install nftopt

Example code

from scipy.optimize import minimize
from nftopt import nakanishi_fujii_todo


res = minimize(
    YOUR_FUNC,
    YOUR_PARAM,
    options={'maxfev': 2048},
    method=nakanishi_fujii_todo,
    callback=YOUR_EVAL_FUNC
)

Reference

[1] K. M. Nakanishi, K. Fujii, and S. Todo. 2019. Sequential minimal optimization for quantum-classical hybrid algorithms. arXiv preprint arXiv:1903.12166.

License

Apache-2.0 License (see LICENSE file).

About

Nakanishi-Fujii-Todo method for scipy.optimize

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages