microsoft/qdk

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.9.0

Branches

Tags

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

Clone

HTTPS

Download ZIP

compiler/qsc/src/lib.rs

74lines · 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 state::{
53 fmt_basis_state_label, fmt_complex, format_state_id, get_matrix_latex, get_phase,
54 get_state_latex,
55 },
56};
57
58pub mod linter {
59 pub use qsc_linter::{run_lints, LintConfig, LintKind, LintLevel};
60}
61
62pub use qsc_doc_gen::{display, generate_docs};
63
64pub mod circuit {
65 pub use qsc_circuit::{operations::*, Circuit, Operation};
66}
67
68pub mod parse {
69 pub use qsc_parse::top_level_nodes;
70}
71
72pub mod partial_eval {
73 pub use qsc_partial_eval::Error;
74}
75