microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
compiler/qsc/src/lib.rs
75lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | pub mod codegen; |
| 5 | pub mod compile; |
| 6 | pub mod error; |
| 7 | pub mod incremental; |
| 8 | pub mod interpret; |
| 9 | pub mod location; |
| 10 | pub mod packages; |
| 11 | pub mod target; |
| 12 | |
| 13 | pub use qsc_formatter::formatter; |
| 14 | |
| 15 | pub use qsc_frontend::compile::{CompileUnit, PackageStore, SourceContents, SourceMap, SourceName}; |
| 16 | |
| 17 | pub mod resolve { |
| 18 | pub use qsc_frontend::resolve::{path_as_field_accessor, Local, LocalKind, Locals, Res}; |
| 19 | } |
| 20 | |
| 21 | pub mod fir { |
| 22 | pub use qsc_fir::{fir::*, *}; |
| 23 | } |
| 24 | |
| 25 | pub mod hir { |
| 26 | pub use qsc_hir::{hir::*, *}; |
| 27 | } |
| 28 | |
| 29 | pub mod ast { |
| 30 | pub use qsc_ast::{ast::*, *}; |
| 31 | } |
| 32 | |
| 33 | pub mod project { |
| 34 | pub use qsc_project::{ |
| 35 | DirEntry, EntryType, Error, FileSystem, Manifest, ManifestDescriptor, PackageCache, |
| 36 | PackageGraphSources, |
| 37 | }; |
| 38 | } |
| 39 | |
| 40 | pub use qsc_data_structures::{ |
| 41 | language_features::LanguageFeatures, namespaces::*, span::Span, target::TargetCapabilityFlags, |
| 42 | }; |
| 43 | |
| 44 | pub use qsc_passes::{lower_hir_to_fir, PackageType, PassContext}; |
| 45 | |
| 46 | pub mod line_column { |
| 47 | pub use qsc_data_structures::line_column::{Encoding, Position, Range}; |
| 48 | } |
| 49 | |
| 50 | pub use qsc_eval::{ |
| 51 | backend::{Backend, SparseSim}, |
| 52 | noise::PauliNoise, |
| 53 | state::{ |
| 54 | fmt_basis_state_label, fmt_complex, format_state_id, get_matrix_latex, get_phase, |
| 55 | get_state_latex, |
| 56 | }, |
| 57 | }; |
| 58 | |
| 59 | pub mod linter { |
| 60 | pub use qsc_linter::{run_lints, LintConfig, LintKind, LintLevel}; |
| 61 | } |
| 62 | |
| 63 | pub use qsc_doc_gen::{display, generate_docs}; |
| 64 | |
| 65 | pub mod circuit { |
| 66 | pub use qsc_circuit::{operations::*, Circuit, Operation}; |
| 67 | } |
| 68 | |
| 69 | pub mod parse { |
| 70 | pub use qsc_parse::{completion, top_level_nodes}; |
| 71 | } |
| 72 | |
| 73 | pub mod partial_eval { |
| 74 | pub use qsc_partial_eval::Error; |
| 75 | } |
| 76 | |