Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: CQCL/tket2
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c77146c9552fa574e6af10c3ff1daf5cbb3f9867
Choose a base ref
..
head repository: CQCL/tket2
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 09d2524635001fb158339c0a28f352a74ced0614
Choose a head ref
Showing with 40 additions and 537 deletions.
  1. +31 −493 Cargo.lock
  2. +1 −3 Cargo.toml
  3. +1 −1 tket2-eccs/CHANGELOG.md
  4. +6 −0 tket2-hseries/CHANGELOG.md
  5. +1 −1 tket2-hseries/Cargo.toml
  6. +0 −2 tket2/Cargo.toml
  7. +0 −37 tket2/src/utils.rs
524 changes: 31 additions & 493 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -75,9 +75,7 @@ strum = "0.26.3"
strum_macros = "0.26.4"
tracing-appender = "0.2.2"
tracing-subscriber = "0.3.19"
typetag = "0.2.18"
urlencoding = "2.1.2"
webbrowser = "1.0.2"
typetag = "0.2.19"
cool_asserts = "2.0.3"
zstd = "0.13.2"

2 changes: 1 addition & 1 deletion tket2-eccs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## [0.3.0](https://github.com/CQCL/tket2/compare/tket2-eccs-v0.2.0...tket2-eccs-v0.3.0) (2024-12-18)
## [0.3.0](https://github.com/CQCL/tket2/compare/tket2-eccs-v0.2.0...tket2-eccs-v0.3.0) (2024-12-23)


### ⚠ BREAKING CHANGES
6 changes: 6 additions & 0 deletions tket2-hseries/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.7.1](https://github.com/CQCL/tket2/compare/tket2-hseries-v0.7.0...tket2-hseries-v0.7.1) - 2024-12-18

### New Features

- Add monomorphization and constant folding to QSystemPass (#730)

## [0.7.0](https://github.com/CQCL/tket2/compare/tket2-hseries-v0.6.0...tket2-hseries-v0.7.0) - 2024-12-16

### ⚠ BREAKING CHANGES
2 changes: 1 addition & 1 deletion tket2-hseries/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tket2-hseries"
version = "0.7.0"
version = "0.7.1"
edition.workspace = true
rust-version.workspace = true

2 changes: 0 additions & 2 deletions tket2/Cargo.toml
Original file line number Diff line number Diff line change
@@ -77,8 +77,6 @@ zstd = { workspace = true, optional = true }
[dev-dependencies]
rstest = { workspace = true }
criterion = { workspace = true, features = ["html_reports"] }
webbrowser = { workspace = true }
urlencoding = { workspace = true }
cool_asserts = { workspace = true }

[[bench]]
37 changes: 0 additions & 37 deletions tket2/src/utils.rs
Original file line number Diff line number Diff line change
@@ -58,40 +58,3 @@ where
let hugr = builder.finish_hugr()?;
Ok(Circuit::new(hugr, circ.node()))
}

// Test only utils
#[allow(dead_code)]
#[allow(unused_imports)]
#[cfg(test)]
pub(crate) mod test {
use crate::Circuit;
use hugr::HugrView;

/// Open a browser page to render a dot string graph.
///
/// This can be used directly on the output of `Hugr::dot_string`
///
/// Only for use in local testing. Will fail to compile on CI.
#[cfg(not(ci_run))]
pub(crate) fn viz_dotstr(dotstr: impl AsRef<str>) {
let mut base: String = "https://dreampuf.github.io/GraphvizOnline/#".into();
base.push_str(&urlencoding::encode(dotstr.as_ref()));
webbrowser::open(&base).unwrap();
}

/// Open a browser page to render a Circuit's dot string graph.
///
/// Only for use in local testing. Will fail to compile on CI.
#[cfg(not(ci_run))]
pub(crate) fn viz_circ(circ: &Circuit) {
viz_dotstr(circ.dot_string());
}

/// Open a browser page to render a HugrView's dot string graph.
///
/// Only for use in local testing. Will fail to compile on CI.
#[cfg(not(ci_run))]
pub(crate) fn viz_hugr(hugr: &impl HugrView) {
viz_dotstr(hugr.dot_string());
}
}