quantrs2-sim 0.1.2

Quantum circuit simulators 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-sim"
version = "0.1.2"
authors = ["COOLJAPAN OU"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Quantum circuit simulators for the QuantRS2 framework"
readme = "README.md"
keywords = [
    "quantum",
    "computing",
    "simulator",
    "state-vector",
    "gates",
]
categories = [
    "science",
    "simulation",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/cool-japan/quantrs"

[package.metadata.docs.rs]
all-features = false
features = [
    "optimize",
    "simd",
    "memory_efficient",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
advanced_math = [
    "dep:scirs2-optimize",
    "dep:ndrustfft",
    "dep:sprs",
    "dep:nalgebra",
]
cuquantum = ["gpu"]
default = ["optimize"]
gpu = [
    "dep:wgpu",
    "dep:bytemuck",
    "dep:tokio",
    "dep:futures",
]
memory_efficient = []
mpi = []
mps = []
optimize = [
    "simd",
    "dep:optirs-core",
]
python = ["dep:pyo3"]
simd = []

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

[[bin]]
name = "debug_holographic_matrix"
path = "debug_holographic_matrix.rs"

[[bin]]
name = "test_stabilizer"
path = "src/bin/test_stabilizer.rs"

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

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

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

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

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

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

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

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

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

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

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

[dependencies.bytemuck]
version = "1.24.0"
features = [
    "derive",
    "derive",
]
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.dashmap]
version = "6.1"

[dependencies.fastrand]
version = "2.3.0"

[dependencies.flate2]
version = "1.1"

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.half]
version = "2.7"
features = ["num-traits"]

[dependencies.md5]
version = "0.8"

[dependencies.memmap2]
version = "0.9"

[dependencies.nalgebra]
version = "0.33.2"
optional = true

[dependencies.nalgebra-sparse]
version = "0.11"

[dependencies.ndrustfft]
version = "0.6"
optional = true

[dependencies.num_cpus]
version = "1.17.0"

[dependencies.optirs-core]
version = "0.1.0"
optional = true
default-features = false

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

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

[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",
    "simd",
    "memory_management",
    "parallel",
    "linalg",
]
default-features = false

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

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

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

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

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sprs]
version = "0.11"
optional = true

[dependencies.tempfile]
version = "3.24"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.49.0"
features = [
    "full",
    "rt",
    "rt-multi-thread",
]
optional = true

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

[dependencies.wgpu]
version = "26.0.1"
optional = true

[dev-dependencies.approx]
version = "0.5"

[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