1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#![cfg_attr(doc, feature(extended_key_value_attributes))]
#![cfg_attr(doc, cfg_attr(doc, doc = include_str!("../README.md")))]
#![cfg_attr(all(doc, feature = "python"), deny(rustdoc::broken_intra_doc_links))]
#![cfg_attr(doc, deny(missing_docs))]
#![cfg_attr(doc, warn(missing_doc_code_examples))]
#[macro_use(array, s)]
extern crate ndarray;
extern crate derive_more;
extern crate serde;
use serde::{Deserialize, Serialize};
use std::usize;
pub mod c_api;
mod chp_decompositions;
pub mod common_matrices;
mod instrument;
pub mod linalg;
mod noise_model;
mod paulis;
mod processes;
mod states;
mod tableau;
mod utils;
pub use crate::instrument::*;
pub use crate::noise_model::NoiseModel;
pub use crate::paulis::*;
pub use crate::processes::*;
pub use crate::states::{State, StateData};
pub use crate::tableau::Tableau;
pub use crate::utils::*;
#[cfg(all(not(doc), feature = "python"))]
mod python;
#[cfg(all(doc, feature = "python"))]
pub mod python;
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct QubitSized<T> {
n_qubits: usize,
data: T,
}
impl<T> QubitSized<T> {
pub fn get_n_qubits(&self) -> usize {
self.n_qubits
}
}
pub mod built_info {
include!(concat!(env!("OUT_DIR"), "/built.rs"));
}