microsoft/qdk

Public

mirrored fromhttps://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
billti/bloch

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

compiler/qsc/src/lib.rs

75lines · modecode

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4pub mod codegen;
5pub mod compile;
6pub mod error;
7pub mod incremental;
8pub mod interpret;
9pub mod location;
10pub mod packages;
11pub mod target;
12
13pub use qsc_formatter::formatter;
14
15pub use qsc_frontend::compile::{CompileUnit, PackageStore, SourceContents, SourceMap, SourceName};
16
17pub mod resolve {
18 pub use qsc_frontend::resolve::{path_as_field_accessor, Local, LocalKind, Locals, Res};
19}
20
21pub mod fir {
22 pub use qsc_fir::{fir::*, *};
23}
24
25pub mod hir {
26 pub use qsc_hir::{hir::*, *};
27}
28
29pub mod ast {
30 pub use qsc_ast::{ast::*, *};
31}
32
33pub mod project {
34 pub use qsc_project::{
35 DirEntry, EntryType, Error, FileSystem, Manifest, ManifestDescriptor, PackageCache,
36 PackageGraphSources,
37 };
38}
39
40pub use qsc_data_structures::{
41 language_features::LanguageFeatures, namespaces::*, span::Span, target::TargetCapabilityFlags,
42};
43
44pub use qsc_passes::{lower_hir_to_fir, PackageType, PassContext};
45
46pub mod line_column {
47 pub use qsc_data_structures::line_column::{Encoding, Position, Range};
48}
49
50pub 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
59pub mod linter {
60 pub use qsc_linter::{run_lints, LintConfig, LintKind, LintLevel};
61}
62
63pub use qsc_doc_gen::{display, generate_docs};
64
65pub mod circuit {
66 pub use qsc_circuit::{operations::*, Circuit, Operation};
67}
68
69pub mod parse {
70 pub use qsc_parse::{completion, top_level_nodes};
71}
72
73pub mod partial_eval {
74 pub use qsc_partial_eval::Error;
75}
76