quantrs2-circuit 0.1.2

Quantum circuit representation and DSL for the QuantRS2 framework
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.86.0"
name = "quantrs2-circuit"
version = "0.1.2"
authors = ["COOLJAPAN OU"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Quantum circuit representation and DSL for the QuantRS2 framework"
readme = "README.md"
keywords = [
    "quantum",
    "computing",
    "circuit",
    "gates",
    "qasm",
]
categories = [
    "science",
    "simulation",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/cool-japan/quantrs"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
python = ["dep:pyo3"]

[lib]
name = "quantrs2_circuit"
path = "src/lib.rs"

[[example]]
name = "advanced_features_demo"
path = "examples/advanced_features_demo.rs"

[[example]]
name = "classical_control_demo"
path = "examples/classical_control_demo.rs"

[[example]]
name = "crosstalk_demo"
path = "examples/crosstalk_demo.rs"

[[example]]
name = "distributed_demo"
path = "examples/distributed_demo.rs"

[[example]]
name = "equivalence_demo"
path = "examples/equivalence_demo.rs"

[[example]]
name = "measurement_demo"
path = "examples/measurement_demo.rs"

[[example]]
name = "noise_optimization_demo"
path = "examples/noise_optimization_demo.rs"

[[example]]
name = "optimization_demo"
path = "examples/optimization_demo.rs"

[[example]]
name = "pulse_demo"
path = "examples/pulse_demo.rs"

[[example]]
name = "qasm_example"
path = "examples/qasm_example.rs"

[[example]]
name = "qc_co_optimization_demo"
path = "examples/qc_co_optimization_demo.rs"

[[example]]
name = "routing_demo"
path = "examples/routing_demo.rs"

[[example]]
name = "synthesis_demo"
path = "examples/synthesis_demo.rs"

[[example]]
name = "tensor_network_demo"
path = "examples/tensor_network_demo.rs"

[[example]]
name = "vqe_demo"
path = "examples/vqe_demo.rs"

[[test]]
name = "optimization_tests"
path = "tests/optimization_tests.rs"

[[test]]
name = "qasm_tests"
path = "tests/qasm_tests.rs"

[[bench]]
name = "circuit_benchmarks"
path = "benches/circuit_benchmarks.rs"
harness = false

[dependencies.oxicode]
version = "0.1.1"
features = [
    "std",
    "derive",
    "serde",
]

[dependencies.pest]
version = "2.8"

[dependencies.pest_derive]
version = "2.8"

[dependencies.petgraph]
version = "0.8"

[dependencies.pyo3]
version = "0.27.2"
features = [
    "extension-module",
    "extension-module",
]
optional = true
default-features = false

[dependencies.quantrs2-core]
version = "0.1.2"

[dependencies.regex]
version = "1.12.2"

[dependencies.scirs2-autograd]
version = "0.1.2"
default-features = false

[dependencies.scirs2-core]
version = "0.1.2"
features = [
    "serialization",
    "linalg",
    "simd",
    "parallel",
    "cache",
    "profiling",
    "memory_management",
    "random",
    "array",
]
default-features = false

[dependencies.scirs2-graph]
version = "0.1.2"
default-features = false

[dependencies.scirs2-linalg]
version = "0.1.2"
default-features = false

[dependencies.scirs2-optimize]
version = "0.1.2"
default-features = false

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.uuid]
version = "1.19.0"
features = [
    "v4",
    "serde",
]

[dev-dependencies.criterion]
version = "0.8"
features = [
    "html_reports",
    "async_tokio",
]

[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
dbg_macro = "warn"
doc_markdown = "allow"
enum_glob_use = "warn"
float_cmp = "allow"
items_after_statements = "allow"
many_single_char_names = "allow"
missing_docs_in_private_items = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
ptr_eq = "allow"
redundant_closure_for_method_calls = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
unwrap_used = "allow"
wildcard_imports = "allow"

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
ambiguous_glob_reexports = "allow"
dead_code = "allow"
deprecated = "allow"
elided_lifetimes_in_paths = "allow"
missing_debug_implementations = "allow"
missing_docs = "allow"
private_bounds = "allow"
private_interfaces = "allow"
unpredictable_function_pointer_comparisons = "allow"
unused_assignments = "allow"
unused_imports = "allow"
unused_mut = "allow"
unused_variables = "allow"

[lints.rust.nonstandard_style]
level = "warn"
priority = -1

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1