quizx 0.3.0

Quantum Circuit Optimisation and Compilation using the ZX-calculus
Documentation
// QuiZX - Rust library for quantum circuit rewriting and optimisation
//         using the ZX-calculus
// Copyright (C) 2021 - Aleks Kissinger
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//    http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// use crate::graph::GraphLike;
// use crate::vec_graph::*;
use pyo3::prelude::*;
use pyo3::wrap_pyfunction;

#[pymodule]
fn libquizx(_py: Python, m: &PyModule) -> PyResult<()> {
    m.add_function(wrap_pyfunction!(dummy, m)?)?;
    m.add_class::<TestClass>()?;
    Ok(())
}

#[pyfunction]
fn dummy(a: i64) -> String {
    format!("FOO! {}", a)
}

#[pyclass]
struct TestClass {
    pub x: i64
}

#[pymethods]
impl TestClass {
    #[new]
    fn new() -> TestClass { TestClass { x: 12 } }
}