diff --git a/crates/python/src/executable.rs b/crates/python/src/executable.rs index 072a5643b..b2ae881fe 100644 --- a/crates/python/src/executable.rs +++ b/crates/python/src/executable.rs @@ -43,6 +43,14 @@ pub struct PyParameter { #[pymethods] impl PyExecutable { #[new] + #[args( + "/", + registers = "Vec::new()", + parameters = "Vec::new()", + shots = "None", + compile_with_quilc = "None", + compiler_options = "None" + )] pub fn new( quil: String, registers: Vec, diff --git a/crates/python/src/qpu/client.rs b/crates/python/src/qpu/client.rs index 4311262b5..ca1af0fd0 100644 --- a/crates/python/src/qpu/client.rs +++ b/crates/python/src/qpu/client.rs @@ -48,6 +48,7 @@ py_wrap_type! { impl PyQcsClient { // TODO: default arg #[new] + #[args("/", use_gateway = "None")] pub fn new(py: Python<'_>, use_gateway: Option) -> PyResult { future_into_py(py, async move { let client = Qcs::load() diff --git a/crates/python/src/qpu/quilc/mod.rs b/crates/python/src/qpu/quilc/mod.rs index e5f19c9e6..9eb74f2aa 100644 --- a/crates/python/src/qpu/quilc/mod.rs +++ b/crates/python/src/qpu/quilc/mod.rs @@ -21,6 +21,7 @@ py_wrap_type! { #[pymethods] impl PyCompilerOpts { #[new] + #[args("/", timeout = "DEFAULT_COMPILER_TIMEOUT")] pub fn new(timeout: Option) -> Self { Self::from(CompilerOpts::new().with_timeout(timeout)) }