Quantum/Chemistry/Schema
XField 7b76c4c410
Use latest Azure Quantum .NET SDK and Newtonsoft.Json packages (#588)
* Update Newtonsoft.Json dependency to 13.0.1

* Update Newtonsoft.Json to 13.0.1
2022-01-24 16:37:23 -08:00
..
README.md Use latest Azure Quantum .NET SDK and Newtonsoft.Json packages (#588) 2022-01-24 16:37:23 -08:00
broombridge-0.1.schema.json Replace references to branch master with main (#423) 2020-09-16 13:10:14 -07:00
broombridge-0.2.schema.json Replace references to branch master with main (#423) 2020-09-16 13:10:14 -07:00
requirements.txt fix: validator installation instructions (#576) 2022-01-12 15:15:39 -08:00
validator.py fix: validator installation instructions (#576) 2022-01-12 15:15:39 -08:00

README.md

Schema

This folder contains the definition of the Broombridge schema and a validator to check that a given YAML file is a valid description of a Broombridge integral data set.

Running the Validator Tool

The validator tool is a Python script validator.py that checks given YAML documents against a JSON schema such as the default broombridge-0.2.schema.json file in used to define quantum chemistry problems.

To run the tool, at your favorite command line, first install the prerequisites

pip install -r requirements.txt

and then run validator.py with an instance of the schema to be tested. For example:

python validator.py ..\IntegralData\Broombridge_v0.2\broombridg
e_v0.2.yaml

If the instance is not a valid instance, then an exception will be raised that details how the instance failed validation.