microsoft/qdk

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
iadavis/qiskit2-explore

Branches

Tags

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

Clone

HTTPS

Download ZIP

source/compiler/qsc/src/lib.rs

88lines · 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;
11
12pub use qsc_formatter::formatter;
13
14pub use qsc_frontend::compile::{CompileUnit, PackageStore, SourceContents, SourceMap, SourceName};
15
16pub mod resolve {
17 pub use qsc_frontend::resolve::{
18 GlobalScope, Local, Locals, NameKind, Res, iter_valid_items, path_as_field_accessor,
19 };
20}
21
22pub mod fir {
23 pub use qsc_fir::{fir::*, *};
24}
25
26pub mod hir {
27 pub use qsc_hir::{hir::*, *};
28}
29
30pub mod ast {
31 pub use qsc_ast::{ast::*, *};
32}
33
34pub mod project {
35 pub use qsc_project::{
36 DirEntry, EntryType, Error, FileSystem, Manifest, ManifestDescriptor, PackageCache,
37 PackageGraphSources, ProjectType,
38 };
39}
40
41pub use qsc_data_structures::{
42 functors::FunctorApp, language_features::LanguageFeatures, namespaces::*, span::Span,
43 target::TargetCapabilityFlags,
44};
45
46pub use qsc_passes::{PackageType, PassContext, lower_hir_to_fir};
47
48pub mod line_column {
49 pub use qsc_data_structures::line_column::{Encoding, Position, Range};
50}
51
52pub use qsc_eval::{
53 backend::{Backend, SparseSim},
54 noise::PauliNoise,
55 state::{
56 fmt_basis_state_label, fmt_complex, format_state_id, get_matrix_latex, get_phase,
57 get_state_latex,
58 },
59};
60
61pub mod linter {
62 pub use qsc_linter::{
63 GroupConfig, LintConfig, LintKind, LintLevel, LintOrGroupConfig, run_lints,
64 };
65}
66
67pub use qsc_doc_gen::{display, generate_docs};
68
69pub mod circuit {
70 pub use qsc_circuit::{
71 CURRENT_VERSION, Circuit, CircuitGroup, Operation, circuit_to_qsharp::circuits_to_qsharp,
72 json_to_circuit::json_to_circuits, operations::*,
73 };
74}
75
76pub mod parse {
77 pub use qsc_parse::{completion, top_level_nodes};
78}
79
80pub mod partial_eval {
81 pub use qsc_partial_eval::Error;
82}
83
84pub mod target {
85 pub use qsc_data_structures::target::Profile;
86}
87
88pub mod qasm;