microsoft/qdk

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
billti/sim

Branches

Tags

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

Clone

HTTPS

Download ZIP

compiler/qsc/src/lib.rs

82lines · 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 functors::FunctorApp, language_features::LanguageFeatures, namespaces::*, span::Span,
42 target::TargetCapabilityFlags,
43};
44
45pub use qsc_passes::{lower_hir_to_fir, PackageType, PassContext};
46
47pub mod line_column {
48 pub use qsc_data_structures::line_column::{Encoding, Position, Range};
49}
50
51pub use qsc_eval::{
52 backend::{Backend, SparseSim},
53 noise::PauliNoise,
54 state::{
55 fmt_basis_state_label, fmt_complex, format_state_id, get_matrix_latex, get_phase,
56 get_state_latex,
57 },
58};
59
60pub mod linter {
61 pub use qsc_linter::{run_lints, LintConfig, LintKind, LintLevel};
62}
63
64pub use qsc_doc_gen::{display, generate_docs};
65
66pub mod circuit {
67 pub use qsc_circuit::{operations::*, Circuit, Operation};
68}
69
70pub mod parse {
71 pub use qsc_parse::{completion, top_level_nodes};
72}
73
74pub mod partial_eval {
75 pub use qsc_partial_eval::Error;
76}
77
78pub mod qasm3 {
79 pub use qsc_qasm3::io::*;
80 pub use qsc_qasm3::parse::*;
81 pub use qsc_qasm3::*;
82}
83