Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ namespace Microsoft.Quantum.Experimental.Decompositions {

internal operation SpreadZ (from : Qubit, to : Qubit[]) : Unit is Adj {
if (Length(to) > 0) {
Controlled Intrinsic.X([to[0]], from);
if (Length(to) > 1) {
let half = Length(to) / 2;
SpreadZ(to[0], to[half + 1 .. Length(to) - 1]);
SpreadZ(from, to[1 .. half]);
}
Controlled Intrinsic.X([to[0]], from);
}
}

Expand Down
1 change: 1 addition & 0 deletions src/Simulation/qdk_sim_rs/rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nightly-2022-08-01
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How often will we need to update this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strictly speaking, we don't need to on any fixed schedule — old nightly builds persist and are valid, but will not include bugfixes from future nightlies. From that perspective, it's good practice to update as part of the regular maintenance of the project. Since we use a minimal number of unstable features (specifically, only backtrace), the cost to updating is very minimal — everything not gated on a feature attribute is still stable and subject to API stability rules.

3 changes: 0 additions & 3 deletions src/Simulation/qdk_sim_rs/rust-toolchain.toml

This file was deleted.