bicycle_compiler 0.2.1

A compiler for Pauli-based compilation (PBC) circuits to bicycle instructions
Documentation
{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "title": "PBC Program",
    "definitions": {
        "basis": {
            "type": "array",
            "items": {
                "type": "string",
                "enum": [
                    "I",
                    "X",
                    "Y",
                    "Z"
                ]
            }
        }
    },
    "type": "array",
    "items": {
        "oneOf": [
            {
                "type": "object",
                "properties": {
                    "Rotation": {
                        "type": "object",
                        "properties": {
                            "basis": {
                                "$ref": "#/definitions/basis"
                            },
                            "angle": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "basis",
                            "angle"
                        ]
                    }
                },
                "required": [
                    "Rotation"
                ]
            },
            {
                "type": "object",
                "properties": {
                    "Measurement": {
                        "type": "object",
                        "properties": {
                            "basis": {
                                "$ref": "#/definitions/basis"
                            },
                            "flip_result": {
                                "type": "boolean"
                            }
                        },
                        "required": [
                            "basis",
                            "flip_result"
                        ]
                    }
                },
                "required": [
                    "Measurement"
                ]
            }
        ]
    }
}