{"id":19663418,"url":"https://github.com/lanl-ansi/bqpjson","last_synced_at":"2025-04-28T21:32:47.829Z","repository":{"id":57416226,"uuid":"84681525","full_name":"lanl-ansi/bqpjson","owner":"lanl-ansi","description":"Utilities for working with bqpjson data","archived":false,"fork":false,"pushed_at":"2020-12-18T19:54:28.000Z","size":75,"stargazers_count":4,"open_issues_count":16,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-05T11:22:58.181Z","etag":null,"topics":["ising-model","json-data","python","quadratic-programming"],"latest_commit_sha":null,"homepage":"http://bqpjson.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lanl-ansi.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-11T21:38:33.000Z","updated_at":"2022-06-09T11:51:30.000Z","dependencies_parsed_at":"2022-09-05T04:42:06.379Z","dependency_job_id":null,"html_url":"https://github.com/lanl-ansi/bqpjson","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanl-ansi%2Fbqpjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanl-ansi%2Fbqpjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanl-ansi%2Fbqpjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lanl-ansi%2Fbqpjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lanl-ansi","download_url":"https://codeload.github.com/lanl-ansi/bqpjson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251391323,"owners_count":21582149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ising-model","json-data","python","quadratic-programming"],"created_at":"2024-11-11T16:14:30.052Z","updated_at":"2025-04-28T21:32:47.483Z","avatar_url":"https://github.com/lanl-ansi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"==========\nbqpjson\n==========\n\n**release:**\n\n.. image:: https://badge.fury.io/py/bqpjson.svg\n    :target: https://badge.fury.io/py/bqpjson\n\n.. image:: https://readthedocs.org/projects/bqpjson/badge/?version=stable\n  :target: http://bqpjson.readthedocs.io/en/stable/?badge=stable\n  :alt: Documentation Status\n\n\n**dev status:**\n\n.. image:: https://travis-ci.org/lanl-ansi/bqpjson.svg?branch=master\n  :target: https://travis-ci.org/lanl-ansi/bqpjson\n  :alt: Build Report\n.. image:: https://codecov.io/gh/lanl-ansi/bqpjson/branch/master/graph/badge.svg\n  :target: https://codecov.io/gh/lanl-ansi/bqpjson\n  :alt: Coverage Report\n.. image:: https://readthedocs.org/projects/bqpjson/badge/?version=latest\n  :target: http://bqpjson.readthedocs.io/en/latest/?badge=latest\n  :alt: Documentation Status\n\nbqpjson is a minimalist python package for working with bqpjson data files, a json-based encoding of binary quadratic programs.  A detailed description of the bqpjson data format is available `here \u003chttp://bqpjson.readthedocs.io/en/latest/bqpjson_format.html\u003e`_.  \n\nThe package can be installed via::\n\n    pip install bqpjson\n\n\n**The bqpjson toolset includes:**\n\n- *bqpjson* - python tools for the validation and transformation of bqpjson data (`documentation \u003chttp://bqpjson.readthedocs.io/en/latest/\u003e`_)\n- *bqpjson-schema.json* - a JSON-Schema for bqpjson data files\n- *spin2bool* - a command line tool for converting a bqpjson data files between the spin and boolean variable spaces\n- *bqp2qh* - a command line tool for converting bqpjson data files into qubist compatible hamiltonians\n- *bqp2qubo* - a command line tool for converting bqpjson data into qubo data\n- *bqp2mzn* - a command line tool for converting bqpjson data into a minizinc model\n- *bqp2hfs* - a command line tool for converting bqpjson data into hfs data\n\n\n**An example of bqpjson data**::\n\n    {\n      \"description\":\"a simple model\",\n      \"id\": 0,\n      \"linear_terms\": [\n        {\"coeff\":  1.3, \"id\": 2},\n        {\"coeff\": -0.7, \"id\": 6}\n      ],\n      \"metadata\": {},\n      \"offset\": 0.0,\n      \"quadratic_terms\": [\n        {\"coeff\": -0.2, \"id_head\": 4, \"id_tail\": 2},\n        {\"coeff\":  1.5, \"id_head\": 6, \"id_tail\": 2}\n      ],\n      \"scale\": 1.0,\n      \"variable_domain\": \"spin\",\n      \"variable_ids\": [2,4,6],\n      \"version\": \"1.0.0\"\n    }\n\n\nLicense\n------------\nbqpjson is developed at Los Alamos National Laboratory and is provided under a BSD-ish license with a \"modifications must be indicated\" clause.  See the `LICENSE.md` file for the full text.  This package is part of the Hybrid Quantum-Classical Computing suite, known internally as LA-CC-16-032.\n\n\nChangelog\n------------\n\n**staged**\n\n- nothing\n\n\n**v0.5.3**\n\n- added scaling and offset return values to bqpjson_to_hfs\n\n\n**v0.5.2**\n\n- improved bqp2hfs robustness to coefficient precision issues\n- dropped support for python 2.7 and 3.4\n\n\n**v0.5.1**\n\n- added support for translation to the HFS data format\n\n\n**v0.5.0**\n\n- initial release\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flanl-ansi%2Fbqpjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flanl-ansi%2Fbqpjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flanl-ansi%2Fbqpjson/lists"}