Skip to content
Closed
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
11 changes: 11 additions & 0 deletions crates/ppvm-python-native/src/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,17 @@ macro_rules! create_interface {
self.inner.truncate();
}

// U(1)-conserving exchange/Heisenberg-style gates
pub fn exchange(&mut self, addr0: usize, addr1: usize, theta: f64) {
self.inner.exchange(addr0, addr1, theta);
self.inner.truncate();
}

pub fn xyzz(&mut self, addr0: usize, addr1: usize, theta_xy: f64, theta_zz: f64) {
self.inner.xyzz(addr0, addr1, theta_xy, theta_zz);
self.inner.truncate();
}

// noise
pub fn pauli_error(&mut self, addr0: usize, p: [f64; 3]) {
self.inner.pauli_error(addr0, p);
Expand Down
1 change: 1 addition & 0 deletions crates/ppvm-runtime/src/sum/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ mod proj;
mod rot1;
mod rot2;
mod trace;
mod u1;

#[cfg(feature = "approx")]
mod approx;
Expand Down
Loading
Loading