Skip to content

Commit 55ce258

Browse files
orpuente-MSidavis
andcommitted
Rename qsc_qasm3 to qsc_qasm (#2307)
Rename `qsc_qasm3` to `qsc_qasm`. --------- Co-authored-by: Ian Davis <ian.f.davis@microsoft.com>
1 parent 6f6810d commit 55ce258

File tree

212 files changed

+330
-333
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+330
-333
lines changed

.github/workflows/fuzz.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
matrix:
3535
os: [ubuntu-latest] # Fuzzing is not supported on Win. The macos is temporarily removed
3636
# because of low availability.
37-
target_name: [qsharp, qasm3]
37+
target_name: [qsharp, qasm]
3838

3939
runs-on: ${{ matrix.os }}
4040
permissions:

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ members = [
1818
"compiler/qsc_partial_eval",
1919
"compiler/qsc_passes",
2020
"compiler/qsc_project",
21-
"compiler/qsc_qasm3",
21+
"compiler/qsc_qasm",
2222
"compiler/qsc_rir",
2323
"fuzz",
2424
"katas",

compiler/qsc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ qsc_passes = { path = "../qsc_passes" }
3131
qsc_parse = { path = "../qsc_parse" }
3232
qsc_partial_eval = { path = "../qsc_partial_eval" }
3333
qsc_project = { path = "../qsc_project", features = ["fs"] }
34-
qsc_qasm3 = { path = "../qsc_qasm3", features = ["fs"] }
34+
qsc_qasm = { path = "../qsc_qasm", features = ["fs"] }
3535
qsc_rca = { path = "../qsc_rca" }
3636
qsc_circuit = { path = "../qsc_circuit" }
3737
rustc-hash = { workspace = true }

compiler/qsc/src/qasm.rs

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,26 @@
33

44
use std::path::Path;
55

6-
use qsc_qasm3::io::SourceResolver;
7-
pub use qsc_qasm3::CompilerConfig;
8-
pub use qsc_qasm3::OperationSignature;
9-
pub use qsc_qasm3::OutputSemantics;
10-
pub use qsc_qasm3::ProgramType;
11-
pub use qsc_qasm3::QasmCompileUnit;
12-
pub use qsc_qasm3::QubitSemantics;
6+
use qsc_qasm::io::SourceResolver;
7+
pub use qsc_qasm::{
8+
CompilerConfig, OperationSignature, OutputSemantics, ProgramType, QasmCompileUnit,
9+
QubitSemantics,
10+
};
1311
pub mod io {
14-
pub use qsc_qasm3::io::*;
12+
pub use qsc_qasm::io::*;
1513
}
1614
pub mod parser {
17-
pub use qsc_qasm3::parser::*;
15+
pub use qsc_qasm::parser::*;
1816
}
1917
pub mod error {
20-
pub use qsc_qasm3::Error;
21-
pub use qsc_qasm3::ErrorKind;
18+
pub use qsc_qasm::Error;
19+
pub use qsc_qasm::ErrorKind;
2220
}
2321
pub mod completion {
24-
pub use qsc_qasm3::parser::completion::*;
22+
pub use qsc_qasm::parser::completion::*;
2523
}
26-
pub use qsc_qasm3::compile_to_qsharp_ast_with_config;
27-
pub use qsc_qasm3::package_store_with_qasm;
24+
pub use qsc_qasm::compile_to_qsharp_ast_with_config;
25+
pub use qsc_qasm::package_store_with_qasm;
2826

2927
#[must_use]
3028
pub fn parse_raw_qasm_as_fragments<S, P, R>(

compiler/qsc_qasm3/Cargo.toml renamed to compiler/qsc_qasm/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "qsc_qasm3"
2+
name = "qsc_qasm"
33
authors.workspace = true
44
homepage.workspace = true
55
repository.workspace = true
@@ -32,7 +32,7 @@ miette = { workspace = true, features = ["fancy"] }
3232
# Self import adding fs feature so that we can test
3333
# loading qasm from file.
3434
qsc = { path = "../qsc" }
35-
qsc_qasm3 = { path = ".", features = ["fs"] }
35+
qsc_qasm = { path = ".", features = ["fs"] }
3636
qsc_codegen = { path = "../qsc_codegen" }
3737

3838
[features]

compiler/qsc_qasm3/README.md renamed to compiler/qsc_qasm/README.md

Lines changed: 2 additions & 2 deletions

compiler/qsc_qasm3/benches/rgqft_multiplier.rs renamed to compiler/qsc_qasm/benches/rgqft_multiplier.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Licensed under the MIT License.
33

44
use criterion::{black_box, criterion_group, criterion_main, Criterion};
5-
use qsc_qasm3::{
5+
use qsc_qasm::{
66
compile_to_qsharp_ast_with_config, io::InMemorySourceResolver, CompilerConfig, OutputSemantics,
77
ProgramType, QasmCompileUnit, QubitSemantics,
88
};

0 commit comments

Comments
 (0)