diff --git a/Cargo.toml b/Cargo.toml index 1983957..b333514 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "qook" -version = "0.1.3" +version = "0.2.0" license = "MIT" description = "qook - Pure Rust unitaryfund/qrack Wrapper" documentation = "https://pyqrack.readthedocs.io/en/latest/" diff --git a/src/qrack_simulator.rs b/src/qrack_simulator.rs index 07797e3..21bb445 100644 --- a/src/qrack_simulator.rs +++ b/src/qrack_simulator.rs @@ -2104,7 +2104,7 @@ impl QrackSimulator { self.check_error() } - pub fn in_ket(&self, ket: *mut f32) -> Result<(), QrackError> { + // pub fn in_ket(&self, ket: *mut f32) -> Result<(), QrackError> { // Set state vector // // Set state vector for the selected simulator ID. @@ -2122,13 +2122,13 @@ impl QrackSimulator { // Raises: // RuntimeError: Not implemented for the given builds. - unsafe { - qrack_system::InKet(self.sid, ket); - } - self.check_error() - } + // unsafe { + // qrack_system::InKet(self.sid, ket); + // } + // self.check_error() + // } - pub fn out_ket(self, ket: *mut f32) -> Result<(), QrackError> { + // pub fn out_ket(self, ket: *mut f32) -> Result<(), QrackError> { // Get state vector // // Returns the raw state vector of the simulator. @@ -2142,11 +2142,11 @@ impl QrackSimulator { // Raises: // RuntimeError: Not implemented for the given builds. - unsafe { - qrack_system::OutKet(self.sid, ket); - } - self.check_error() - } + // unsafe { + // qrack_system::OutKet(self.sid, ket); + // } + // self.check_error() + // } pub fn prob(&self, q: u64) -> Result { // Probability of `|1>`