qcs-sdk-python 0.26.0rc1__tar.gz → 0.26.0rc2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/Cargo.lock +1 -1
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/PKG-INFO +1 -1
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/CHANGELOG.md +15 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/Cargo.toml +1 -1
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/Makefile.toml +3 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/executable.rs +4 -2
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/api/mod.rs +40 -29
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/api/python.rs +9 -7
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/qpu/test_api.py +1 -1
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/pyproject.toml +1 -1
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/qpu/api.pyi +30 -12
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/Cargo.toml +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/README-py.md +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/THIRDPARTY.yaml +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/.flake8 +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/README-py.md +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/README.md +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/THIRDPARTY.yaml +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/build.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/examples/delayed_job_retrieval.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/examples/execute.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/examples/libquil.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/examples/local.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/examples/parametric_compilation.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/examples/quil_t.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/poetry.lock +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/poetry.toml +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/python/stubtest-allowlist +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/scripts/check-py-api.sh +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/scripts/lint-bindings.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/scripts/patch_grpc_web.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/bin/diagnostics.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/bin/stub_gen.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/client.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/compiler/isa/edge.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/compiler/isa/mod.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/compiler/isa/operator.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/compiler/isa/qubit.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/compiler/libquil.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/compiler/mod.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/compiler/python.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/compiler/quilc.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/compiler/rpcq.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/diagnostics/mod.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/diagnostics/python.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/execution_data.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/lib.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/python/client.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/python/errors.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/python/executable.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/python/execution_data.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/python/mod.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/python/nonzero.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/python/register_data.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/execution.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/experimental/mod.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/experimental/python.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/experimental/random.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/isa/mod.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/isa/python.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/mod.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/python.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/result_data.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/snapshots/qcs__qpu__rewrite_arithmetic__describe_rewrite_arithmetic__it_allocates_for_multiple_expressions-2.snap +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/snapshots/qcs__qpu__rewrite_arithmetic__describe_rewrite_arithmetic__it_allocates_for_multiple_expressions.snap +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/snapshots/qcs__qpu__rewrite_arithmetic__describe_rewrite_arithmetic__it_converts_frequency_expressions-2.snap +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/snapshots/qcs__qpu__rewrite_arithmetic__describe_rewrite_arithmetic__it_converts_frequency_expressions.snap +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/snapshots/qcs__qpu__rewrite_arithmetic__describe_rewrite_arithmetic__it_converts_phases.snap +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/snapshots/qcs__qpu__rewrite_arithmetic__describe_rewrite_arithmetic__it_converts_set_scale_units.snap +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/snapshots/qcs__qpu__rewrite_arithmetic__describe_rewrite_arithmetic__it_substitutes_and_reuses_gate_expressions.snap +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/snapshots/qcs__qpu__rewrite_arithmetic__describe_rewrite_arithmetic__it_substitutes_gate_parameters.snap +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/translation/mod.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/translation/python.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qvm/execution.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qvm/http.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qvm/libquil.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qvm/mod.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qvm/python.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qvm/snapshots/qcs__qvm__test__apply_valid_parameters_to_program.snap +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/register_data.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests/aspen_9_isa.json +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests/basic_qvm.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests/bell_state_response_data.hex +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests/compiler-isa-Aspen-8.json +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests/mocked_qpu.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests/parametric_compilation.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests/prng_test_cases.json +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests/qcs-isa-Aspen-8.json +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests/qvm_api.rs +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests/qvm_isa.json +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests/settings.toml +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/_fixtures/aspen-m-3.json +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/_fixtures/device-2q.json +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/_qcs_config/secrets.toml +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/_qcs_config/settings.toml +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/compiler/__snapshots__/test_quilc.ambr +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/compiler/test_quilc.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/conftest.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/execution_data/test_execution_data.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/qpu/experimental/test_random.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/qpu/test_isa.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/qpu/test_qpu.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/qpu/test_translation.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/qvm/test_qvm.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/test_client.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/test_diagnostics.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/test_executable.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/test_logging.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/test_tracing_subscriber.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/__init__.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/__init__.pyi +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/_tracing_subscriber/__init__.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/_tracing_subscriber/__init__.pyi +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/_tracing_subscriber/common/__init__.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/_tracing_subscriber/common/__init__.pyi +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/_tracing_subscriber/layers/__init__.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/_tracing_subscriber/layers/__init__.pyi +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/_tracing_subscriber/layers/file/__init__.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/_tracing_subscriber/layers/file/__init__.pyi +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/_tracing_subscriber/layers/otel_otlp/__init__.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/_tracing_subscriber/layers/otel_otlp/__init__.pyi +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/_tracing_subscriber/layers/otel_otlp_file/__init__.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/_tracing_subscriber/layers/otel_otlp_file/__init__.pyi +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/_tracing_subscriber/subscriber/__init__.py +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/_tracing_subscriber/subscriber/__init__.pyi +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/client.pyi +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/compiler/__init__.pyi +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/compiler/quilc.pyi +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/diagnostics.pyi +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/qpu/__init__.pyi +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/qpu/experimental/__init__.pyi +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/qpu/experimental/random.pyi +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/qpu/isa.pyi +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/qpu/translation.pyi +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/qvm/__init__.pyi +0 -0
- {qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/qvm/api.pyi +0 -0
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
## 0.26.0-rc.2 (2026-03-02)
|
|
2
|
+
|
|
3
|
+
### Breaking Changes
|
|
4
|
+
|
|
5
|
+
- merge python crate into lib (#571)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- allow direct endpoint connection strategy (#573)
|
|
10
|
+
|
|
11
|
+
### Fixes
|
|
12
|
+
|
|
13
|
+
- update qcs-api-client dependencies to 0.12.12, (0.13.13 grpc) (#570)
|
|
14
|
+
- elide version value from python stub files (#575)
|
|
15
|
+
|
|
1
16
|
## 0.26.0-rc.1 (2026-03-02)
|
|
2
17
|
|
|
3
18
|
### Breaking Changes
|
|
@@ -50,6 +50,9 @@ description = "Install python dependencies using poetry."
|
|
|
50
50
|
command = "poetry"
|
|
51
51
|
args = ["install", "--with", "dev", "--no-root"]
|
|
52
52
|
|
|
53
|
+
# NOTE: if using `uv`, you may need to set `PYTHONHOME` to the root of the virtual environment:
|
|
54
|
+
#
|
|
55
|
+
# export PYTHONHOME=$(python3 -c "import sys; print(sys.base_prefix)")
|
|
53
56
|
[tasks.generate-stubs]
|
|
54
57
|
description = "Generate Python stub files."
|
|
55
58
|
command = "cargo"
|
|
@@ -473,7 +473,8 @@ impl<'execution> Executable<'_, 'execution> {
|
|
|
473
473
|
/// 2. `translation_options`: An optional [`TranslationOptions`] that is used to configure how
|
|
474
474
|
/// the program in translated.
|
|
475
475
|
/// 3. `execution_options`: The [`ExecutionOptions`] to use. If the connection strategy used
|
|
476
|
-
/// is [`crate::qpu::api::ConnectionStrategy::EndpointId`]
|
|
476
|
+
/// is [`crate::qpu::api::ConnectionStrategy::EndpointId`] or
|
|
477
|
+
/// [`crate::qpu::api::ConnectionStrategy::EndpointAddress`] then direct access to that endpoint
|
|
477
478
|
/// overrides the `quantum_processor_id` parameter.
|
|
478
479
|
///
|
|
479
480
|
/// # Warning
|
|
@@ -531,7 +532,8 @@ impl<'execution> Executable<'_, 'execution> {
|
|
|
531
532
|
/// 2. `translation_options`: An optional [`TranslationOptions`] that is used to configure how
|
|
532
533
|
/// the program in translated.
|
|
533
534
|
/// 3. `execution_options`: The [`ExecutionOptions`] to use. If the connection strategy used
|
|
534
|
-
/// is [`crate::qpu::api::ConnectionStrategy::EndpointId`]
|
|
535
|
+
/// is [`crate::qpu::api::ConnectionStrategy::EndpointId`] or
|
|
536
|
+
/// [`crate::qpu::api::ConnectionStrategy::EndpointAddress`] then direct access to that endpoint
|
|
535
537
|
/// overrides the `quantum_processor_id` parameter.
|
|
536
538
|
///
|
|
537
539
|
/// # Errors
|
|
@@ -96,15 +96,16 @@ impl From<String> for JobId {
|
|
|
96
96
|
/// # Arguments
|
|
97
97
|
///
|
|
98
98
|
/// * `quantum_processor_id` - The quantum processor to execute the job on. This parameter
|
|
99
|
-
/// is required unless using [`ConnectionStrategy::EndpointId`]
|
|
99
|
+
/// is required unless using [`ConnectionStrategy::EndpointId`] or
|
|
100
|
+
/// [`ConnectionStrategy::EndpointAddress`] in `execution_options`
|
|
100
101
|
/// to target a specific endpoint ID.
|
|
101
102
|
/// * `program` - The compiled program as an [`EncryptedControllerJob`]
|
|
102
103
|
/// * `patch_values` - The parameters to use for the execution. See [`submit_with_parameter_batch`]
|
|
103
104
|
/// if you need to execute with multiple sets of parameters.
|
|
104
105
|
/// * `client` - The [`Qcs`] client to use.
|
|
105
106
|
/// * `execution_options` - The [`ExecutionOptions`] to use. If the connection strategy used
|
|
106
|
-
/// is [`ConnectionStrategy::EndpointId`] then direct
|
|
107
|
-
/// overrides the `quantum_processor_id` parameter.
|
|
107
|
+
/// is [`ConnectionStrategy::EndpointId`] or [`ConnectionStrategy::EndpointAddress`] then direct
|
|
108
|
+
/// access to that endpoint overrides the `quantum_processor_id` parameter.
|
|
108
109
|
pub async fn submit(
|
|
109
110
|
quantum_processor_id: Option<&str>,
|
|
110
111
|
program: EncryptedControllerJob,
|
|
@@ -132,15 +133,16 @@ pub async fn submit(
|
|
|
132
133
|
/// # Arguments
|
|
133
134
|
///
|
|
134
135
|
/// * `quantum_processor_id` - The quantum processor to execute the job on. This parameter
|
|
135
|
-
/// is required unless using [`ConnectionStrategy::EndpointId`]
|
|
136
|
+
/// is required unless using [`ConnectionStrategy::EndpointId`] or
|
|
137
|
+
/// [`ConnectionStrategy::EndpointAddress`] in `execution_options`
|
|
136
138
|
/// to target a specific endpoint ID.
|
|
137
139
|
/// * `program` - The compiled program as an [`EncryptedControllerJob`]
|
|
138
140
|
/// * `patch_values` - The parameters to use for the execution. The job will be run once for each
|
|
139
141
|
/// given set of [`Parameters`].
|
|
140
142
|
/// * `client` - The [`Qcs`] client to use.
|
|
141
143
|
/// * `execution_options` - The [`ExecutionOptions`] to use. If the connection strategy used
|
|
142
|
-
/// is [`ConnectionStrategy::EndpointId`]
|
|
143
|
-
/// overrides the `quantum_processor_id` parameter.
|
|
144
|
+
/// is [`ConnectionStrategy::EndpointId`] or [`ConnectionStrategy::EndpointAddress`]
|
|
145
|
+
/// then direct access to that endpoint overrides the `quantum_processor_id` parameter.
|
|
144
146
|
///
|
|
145
147
|
/// # Errors
|
|
146
148
|
///
|
|
@@ -204,12 +206,13 @@ where
|
|
|
204
206
|
/// # Arguments
|
|
205
207
|
///
|
|
206
208
|
/// * `quantum_processor_id` - The quantum processor to execute the job on. This parameter
|
|
207
|
-
/// is required unless using [`ConnectionStrategy::EndpointId`]
|
|
209
|
+
/// is required unless using [`ConnectionStrategy::EndpointId`] or
|
|
210
|
+
/// [`ConnectionStrategy::EndpointAddress`] in `execution_options`
|
|
208
211
|
/// to target a specific endpoint ID.
|
|
209
212
|
/// * `job_ids` - The [`JobId`]s to cancel.
|
|
210
213
|
/// * `client` - The [`Qcs`] client to use.
|
|
211
214
|
/// * `execution_options` - The [`ExecutionOptions`] to use. If the connection strategy used
|
|
212
|
-
/// is [`ConnectionStrategy::EndpointId`]
|
|
215
|
+
/// is [`ConnectionStrategy::EndpointId`] or [`ConnectionStrategy::EndpointAddress`]
|
|
213
216
|
/// overrides the `quantum_processor_id` parameter.
|
|
214
217
|
///
|
|
215
218
|
/// # Errors
|
|
@@ -250,12 +253,14 @@ pub async fn cancel_jobs(
|
|
|
250
253
|
/// # Arguments
|
|
251
254
|
///
|
|
252
255
|
/// * `quantum_processor_id` - The quantum processor to execute the job on. This parameter is
|
|
253
|
-
/// required unless using [`ConnectionStrategy::EndpointId`]
|
|
256
|
+
/// required unless using [`ConnectionStrategy::EndpointId`] or
|
|
257
|
+
/// [`ConnectionStrategy::EndpointAddress`] in `execution_options` to target
|
|
254
258
|
/// a specific endpoint ID.
|
|
255
259
|
/// * `job_ids` - The [`JobId`]s to cancel.
|
|
256
260
|
/// * `client` - The [`Qcs`] client to use.
|
|
257
261
|
/// * `execution_options` - The [`ExecutionOptions`] to use. If the connection strategy used is
|
|
258
|
-
/// [`ConnectionStrategy::EndpointId`]
|
|
262
|
+
/// [`ConnectionStrategy::EndpointId`] or [`ConnectionStrategy::EndpointAddress`]
|
|
263
|
+
/// then direct access to that endpoint overrides the
|
|
259
264
|
/// `quantum_processor_id` parameter.
|
|
260
265
|
///
|
|
261
266
|
/// # Errors
|
|
@@ -284,12 +289,13 @@ pub async fn cancel_job(
|
|
|
284
289
|
///
|
|
285
290
|
/// * `job_id` - The [`JobId`] to retrieve results for.
|
|
286
291
|
/// * `quantum_processor_id` - The quantum processor the job was run on. This parameter
|
|
287
|
-
/// is required unless using [`ConnectionStrategy::EndpointId`]
|
|
292
|
+
/// is required unless using [`ConnectionStrategy::EndpointId`] or
|
|
293
|
+
/// [`ConnectionStrategy::EndpointAddress`] in `execution_options`
|
|
288
294
|
/// to target a specific endpoint ID.
|
|
289
295
|
/// * `client` - The [`Qcs`] client to use.
|
|
290
296
|
/// * `execution_options` - The [`ExecutionOptions`] to use. If the connection strategy used
|
|
291
|
-
/// is [`ConnectionStrategy::EndpointId`]
|
|
292
|
-
/// overrides the `quantum_processor_id` parameter.
|
|
297
|
+
/// is [`ConnectionStrategy::EndpointId`] or [`ConnectionStrategy::EndpointAddress`]
|
|
298
|
+
/// then direct access to that endpoint overrides the `quantum_processor_id` parameter.
|
|
293
299
|
pub async fn retrieve_results(
|
|
294
300
|
job_id: JobId,
|
|
295
301
|
quantum_processor_id: Option<&str>,
|
|
@@ -530,6 +536,10 @@ pub enum ConnectionStrategy {
|
|
|
530
536
|
DirectAccess(),
|
|
531
537
|
/// Connect directly to a specific endpoint using its ID.
|
|
532
538
|
EndpointId(String),
|
|
539
|
+
/// Connect directly to a specific endpoint by its gRPC address, bypassing the gateway.
|
|
540
|
+
///
|
|
541
|
+
/// Should only be used when you have direct network access.
|
|
542
|
+
EndpointAddress(String),
|
|
533
543
|
}
|
|
534
544
|
|
|
535
545
|
impl Default for ConnectionStrategy {
|
|
@@ -559,11 +569,11 @@ pub trait ExecutionTarget<'a> {
|
|
|
559
569
|
ConnectionStrategy::EndpointId(endpoint_id) => Some(
|
|
560
570
|
execute_controller_job_request::Target::EndpointId(endpoint_id.clone()),
|
|
561
571
|
),
|
|
562
|
-
ConnectionStrategy::Gateway()
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
572
|
+
ConnectionStrategy::Gateway()
|
|
573
|
+
| ConnectionStrategy::DirectAccess()
|
|
574
|
+
| ConnectionStrategy::EndpointAddress(_) => quantum_processor_id
|
|
575
|
+
.map(String::from)
|
|
576
|
+
.map(execute_controller_job_request::Target::QuantumProcessorId),
|
|
567
577
|
}
|
|
568
578
|
}
|
|
569
579
|
|
|
@@ -576,11 +586,11 @@ pub trait ExecutionTarget<'a> {
|
|
|
576
586
|
ConnectionStrategy::EndpointId(endpoint_id) => Some(
|
|
577
587
|
get_controller_job_results_request::Target::EndpointId(endpoint_id.clone()),
|
|
578
588
|
),
|
|
579
|
-
ConnectionStrategy::Gateway()
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
589
|
+
ConnectionStrategy::Gateway()
|
|
590
|
+
| ConnectionStrategy::DirectAccess()
|
|
591
|
+
| ConnectionStrategy::EndpointAddress(_) => quantum_processor_id
|
|
592
|
+
.map(String::from)
|
|
593
|
+
.map(get_controller_job_results_request::Target::QuantumProcessorId),
|
|
584
594
|
}
|
|
585
595
|
}
|
|
586
596
|
|
|
@@ -593,11 +603,11 @@ pub trait ExecutionTarget<'a> {
|
|
|
593
603
|
ConnectionStrategy::EndpointId(endpoint_id) => Some(
|
|
594
604
|
cancel_controller_jobs_request::Target::EndpointId(endpoint_id.clone()),
|
|
595
605
|
),
|
|
596
|
-
ConnectionStrategy::Gateway()
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
606
|
+
ConnectionStrategy::Gateway()
|
|
607
|
+
| ConnectionStrategy::DirectAccess()
|
|
608
|
+
| ConnectionStrategy::EndpointAddress(_) => quantum_processor_id
|
|
609
|
+
.map(String::from)
|
|
610
|
+
.map(cancel_controller_jobs_request::Target::QuantumProcessorId),
|
|
601
611
|
}
|
|
602
612
|
}
|
|
603
613
|
|
|
@@ -645,6 +655,7 @@ pub trait ExecutionTarget<'a> {
|
|
|
645
655
|
)
|
|
646
656
|
.await?
|
|
647
657
|
}
|
|
658
|
+
ConnectionStrategy::EndpointAddress(address) => address.clone(),
|
|
648
659
|
};
|
|
649
660
|
self.grpc_address_to_channel(&address, client)
|
|
650
661
|
}
|
|
@@ -833,7 +844,7 @@ pub enum QpuApiError {
|
|
|
833
844
|
GrpcClientError(#[from] GrpcClientError),
|
|
834
845
|
|
|
835
846
|
/// Error due to missing quantum processor ID and endpoint ID.
|
|
836
|
-
#[error("A quantum processor ID must be provided if not connecting directly to an endpoint ID with ConnectionStrategy::EndpointId")]
|
|
847
|
+
#[error("A quantum processor ID must be provided if not connecting directly to an endpoint ID with ConnectionStrategy::EndpointId or ConnectionStrategy::EndpointAddress")]
|
|
837
848
|
MissingQpuId,
|
|
838
849
|
|
|
839
850
|
/// Error due to user not providing patch values
|
|
@@ -442,7 +442,7 @@ impl ConnectionStrategy {
|
|
|
442
442
|
#[gen_stub(override_return_type(type_repr = "tuple[str] | tuple[()]"))]
|
|
443
443
|
fn __getnewargs__<'py>(&self, py: Python<'py>) -> PyResult<Bound<'py, PyTuple>> {
|
|
444
444
|
match self {
|
|
445
|
-
Self::EndpointId(id) => (id.clone(),).into_pyobject(py),
|
|
445
|
+
Self::EndpointId(id) | Self::EndpointAddress(id) => (id.clone(),).into_pyobject(py),
|
|
446
446
|
Self::Gateway() | Self::DirectAccess() => Ok(PyTuple::empty(py)),
|
|
447
447
|
}
|
|
448
448
|
}
|
|
@@ -556,12 +556,14 @@ py_function_sync_async! {
|
|
|
556
556
|
/// :param program: An executable program (see ``qcs_sdk.qpu.translation.translate``).
|
|
557
557
|
/// :param patch_values: A mapping of symbols to their desired values (see ``build_patch_values``).
|
|
558
558
|
/// :param quantum_processor_id: The ID of the quantum processor to run the executable on.
|
|
559
|
-
/// This field is required, unless being used with the ``ConnectionStrategy.endpoint_id()``
|
|
559
|
+
/// This field is required, unless being used with the ``ConnectionStrategy.endpoint_id()``
|
|
560
|
+
/// or ``ConnectionStrategy.endpoint_address()`` execution option.
|
|
560
561
|
/// :param client: The ``Qcs`` client to use.
|
|
561
562
|
/// Creates one using environment configuration if unset.
|
|
562
563
|
/// See https://docs.rigetti.com/qcs/references/qcs-client-configuration for more information.
|
|
563
564
|
/// :param execution_options: The ``ExecutionOptions`` to use.
|
|
564
|
-
/// If the connection strategy option used is ``ConnectionStrategy.endpoint_id("endpoint_id")
|
|
565
|
+
/// If the connection strategy option used is ``ConnectionStrategy.endpoint_id("endpoint_id")``
|
|
566
|
+
/// or ``ConnectionStrategy.endpoint_address("http://some_endpoint_address")``,
|
|
565
567
|
/// then direct access to "endpoint_id" overrides the ``quantum_processor_id`` parameter.
|
|
566
568
|
///
|
|
567
569
|
/// :returns: The ID of the submitted job which can be used to fetch results.
|
|
@@ -619,7 +621,7 @@ py_function_sync_async! {
|
|
|
619
621
|
///
|
|
620
622
|
/// :param program: An executable program (see ``translate``).
|
|
621
623
|
/// :param patch_values: An iterable containing one or more mapping of symbols to their desired values.
|
|
622
|
-
/// :param quantum_processor_id: The ID of the quantum processor to run the executable on. This field is required, unless being used with the ``ConnectionStrategy.endpoint_id()`` execution option.
|
|
624
|
+
/// :param quantum_processor_id: The ID of the quantum processor to run the executable on. This field is required, unless being used with the ``ConnectionStrategy.endpoint_id()`` or ``ConnectionStrategy.endpoint_address()`` execution option.
|
|
623
625
|
/// :param client: The ``Qcs`` client to use. Creates one using environment configuration if unset - see https://docs.rigetti.com/qcs/references/qcs-client-configuration
|
|
624
626
|
/// :param execution_options: The ``ExecutionOptions`` to use.
|
|
625
627
|
///
|
|
@@ -672,7 +674,7 @@ py_function_sync_async! {
|
|
|
672
674
|
/// basis.
|
|
673
675
|
///
|
|
674
676
|
/// :param job_ids: The job IDs to cancel.
|
|
675
|
-
/// :param quantum_processor_id: The quantum processor to execute the job on. This parameter is required unless using the ``ConnectionStrategy.endpoint_id()`` execution option.
|
|
677
|
+
/// :param quantum_processor_id: The quantum processor to execute the job on. This parameter is required unless using the ``ConnectionStrategy.endpoint_id()`` or ``ConnectionStrategy.endpoint_address()`` execution option.
|
|
676
678
|
/// :param client: The ``Qcs`` client to use.
|
|
677
679
|
/// :param execution_options: The ``ExecutionOptions`` to use.
|
|
678
680
|
#[cfg_attr(feature = "stubs", gen_stub_pyfunction(module = "qcs_sdk.qpu.api"))]
|
|
@@ -706,7 +708,7 @@ py_function_sync_async! {
|
|
|
706
708
|
/// basis.
|
|
707
709
|
///
|
|
708
710
|
/// :param job_id: The job ID to cancel.
|
|
709
|
-
/// :param quantum_processor_id: The quantum processor to execute the job on. This parameter is required unless using the ``ConnectionStrategy.endpoint_id()`` execution option.
|
|
711
|
+
/// :param quantum_processor_id: The quantum processor to execute the job on. This parameter is required unless using the ``ConnectionStrategy.endpoint_id()`` or ``ConnectionStrategy.endpoint_address()`` execution option.
|
|
710
712
|
/// :param client: The ``Qcs`` client to use.
|
|
711
713
|
/// :param execution_options: The ``ExecutionOptions`` to use.
|
|
712
714
|
#[cfg_attr(feature = "stubs", gen_stub_pyfunction(module = "qcs_sdk.qpu.api"))]
|
|
@@ -733,7 +735,7 @@ py_function_sync_async! {
|
|
|
733
735
|
/// Fetches execution results for the given QCS Job ID.
|
|
734
736
|
///
|
|
735
737
|
/// :param job_id: The ID of the job to retrieve results for.
|
|
736
|
-
/// :param quantum_processor_id: The ID of the quantum processor the job ran on. This field is required, unless being used with the ``ConnectionStrategy.endpoint_id()`` execution option.
|
|
738
|
+
/// :param quantum_processor_id: The ID of the quantum processor the job ran on. This field is required, unless being used with the ``ConnectionStrategy.endpoint_id()`` or ``ConnectionStrategy.endpoint_address()`` execution option.
|
|
737
739
|
/// :param client: The ``Qcs`` client to use. Creates one using environment configuration if unset - see https://docs.rigetti.com/qcs/references/qcs-client-configuration
|
|
738
740
|
/// :param execution_options: The ``ExecutionOptions`` to use.
|
|
739
741
|
///
|
|
@@ -31,7 +31,7 @@ def test_submit_retrieve(quantum_processor_id: str, execution_options: Execution
|
|
|
31
31
|
assert results is not None
|
|
32
32
|
|
|
33
33
|
class TestPickle():
|
|
34
|
-
@pytest.mark.parametrize("strategy", [ConnectionStrategy.Gateway(), ConnectionStrategy.DirectAccess(), ConnectionStrategy.EndpointId("endpoint_id")])
|
|
34
|
+
@pytest.mark.parametrize("strategy", [ConnectionStrategy.Gateway(), ConnectionStrategy.DirectAccess(), ConnectionStrategy.EndpointId("endpoint_id"), ConnectionStrategy.EndpointAddress("http://localhost:8080")])
|
|
35
35
|
def test_connection_strategy(self, strategy: ConnectionStrategy):
|
|
36
36
|
pickled = pickle.dumps(strategy)
|
|
37
37
|
unpickled = pickle.loads(pickled)
|
|
@@ -112,6 +112,20 @@ class ConnectionStrategy:
|
|
|
112
112
|
def __len__(self) -> builtins.int: ...
|
|
113
113
|
def __new__(cls) -> ConnectionStrategy.DirectAccess: ...
|
|
114
114
|
|
|
115
|
+
@typing.final
|
|
116
|
+
class EndpointAddress(ConnectionStrategy):
|
|
117
|
+
r"""
|
|
118
|
+
Connect directly to a specific endpoint by its gRPC address, bypassing the gateway.
|
|
119
|
+
|
|
120
|
+
Should only be used when you have direct network access.
|
|
121
|
+
"""
|
|
122
|
+
__match_args__ = ("_0",)
|
|
123
|
+
@property
|
|
124
|
+
def _0(self) -> builtins.str: ...
|
|
125
|
+
def __getitem__(self, key: builtins.int) -> typing.Any: ...
|
|
126
|
+
def __len__(self) -> builtins.int: ...
|
|
127
|
+
def __new__(cls, _0: builtins.str) -> ConnectionStrategy.EndpointAddress: ...
|
|
128
|
+
|
|
115
129
|
@typing.final
|
|
116
130
|
class EndpointId(ConnectionStrategy):
|
|
117
131
|
r"""
|
|
@@ -294,7 +308,7 @@ def cancel_job(job_id: builtins.str, quantum_processor_id: typing.Optional[built
|
|
|
294
308
|
basis.
|
|
295
309
|
|
|
296
310
|
:param job_id: The job ID to cancel.
|
|
297
|
-
:param quantum_processor_id: The quantum processor to execute the job on. This parameter is required unless using the ``ConnectionStrategy.endpoint_id()`` execution option.
|
|
311
|
+
:param quantum_processor_id: The quantum processor to execute the job on. This parameter is required unless using the ``ConnectionStrategy.endpoint_id()`` or ``ConnectionStrategy.endpoint_address()`` execution option.
|
|
298
312
|
:param client: The ``Qcs`` client to use.
|
|
299
313
|
:param execution_options: The ``ExecutionOptions`` to use.
|
|
300
314
|
"""
|
|
@@ -311,7 +325,7 @@ def cancel_job_async(job_id: builtins.str, quantum_processor_id: typing.Optional
|
|
|
311
325
|
basis.
|
|
312
326
|
|
|
313
327
|
:param job_id: The job ID to cancel.
|
|
314
|
-
:param quantum_processor_id: The quantum processor to execute the job on. This parameter is required unless using the ``ConnectionStrategy.endpoint_id()`` execution option.
|
|
328
|
+
:param quantum_processor_id: The quantum processor to execute the job on. This parameter is required unless using the ``ConnectionStrategy.endpoint_id()`` or ``ConnectionStrategy.endpoint_address()`` execution option.
|
|
315
329
|
:param client: The ``Qcs`` client to use.
|
|
316
330
|
:param execution_options: The ``ExecutionOptions`` to use.
|
|
317
331
|
"""
|
|
@@ -328,7 +342,7 @@ def cancel_jobs(job_ids: typing.Sequence[builtins.str], quantum_processor_id: ty
|
|
|
328
342
|
basis.
|
|
329
343
|
|
|
330
344
|
:param job_ids: The job IDs to cancel.
|
|
331
|
-
:param quantum_processor_id: The quantum processor to execute the job on. This parameter is required unless using the ``ConnectionStrategy.endpoint_id()`` execution option.
|
|
345
|
+
:param quantum_processor_id: The quantum processor to execute the job on. This parameter is required unless using the ``ConnectionStrategy.endpoint_id()`` or ``ConnectionStrategy.endpoint_address()`` execution option.
|
|
332
346
|
:param client: The ``Qcs`` client to use.
|
|
333
347
|
:param execution_options: The ``ExecutionOptions`` to use.
|
|
334
348
|
"""
|
|
@@ -345,7 +359,7 @@ def cancel_jobs_async(job_ids: typing.Sequence[builtins.str], quantum_processor_
|
|
|
345
359
|
basis.
|
|
346
360
|
|
|
347
361
|
:param job_ids: The job IDs to cancel.
|
|
348
|
-
:param quantum_processor_id: The quantum processor to execute the job on. This parameter is required unless using the ``ConnectionStrategy.endpoint_id()`` execution option.
|
|
362
|
+
:param quantum_processor_id: The quantum processor to execute the job on. This parameter is required unless using the ``ConnectionStrategy.endpoint_id()`` or ``ConnectionStrategy.endpoint_address()`` execution option.
|
|
349
363
|
:param client: The ``Qcs`` client to use.
|
|
350
364
|
:param execution_options: The ``ExecutionOptions`` to use.
|
|
351
365
|
"""
|
|
@@ -355,7 +369,7 @@ def retrieve_results(job_id: builtins.str, quantum_processor_id: typing.Optional
|
|
|
355
369
|
Fetches execution results for the given QCS Job ID.
|
|
356
370
|
|
|
357
371
|
:param job_id: The ID of the job to retrieve results for.
|
|
358
|
-
:param quantum_processor_id: The ID of the quantum processor the job ran on. This field is required, unless being used with the ``ConnectionStrategy.endpoint_id()`` execution option.
|
|
372
|
+
:param quantum_processor_id: The ID of the quantum processor the job ran on. This field is required, unless being used with the ``ConnectionStrategy.endpoint_id()`` or ``ConnectionStrategy.endpoint_address()`` execution option.
|
|
359
373
|
:param client: The ``Qcs`` client to use. Creates one using environment configuration if unset - see https://docs.rigetti.com/qcs/references/qcs-client-configuration
|
|
360
374
|
:param execution_options: The ``ExecutionOptions`` to use.
|
|
361
375
|
|
|
@@ -370,7 +384,7 @@ def retrieve_results_async(job_id: builtins.str, quantum_processor_id: typing.Op
|
|
|
370
384
|
Fetches execution results for the given QCS Job ID.
|
|
371
385
|
|
|
372
386
|
:param job_id: The ID of the job to retrieve results for.
|
|
373
|
-
:param quantum_processor_id: The ID of the quantum processor the job ran on. This field is required, unless being used with the ``ConnectionStrategy.endpoint_id()`` execution option.
|
|
387
|
+
:param quantum_processor_id: The ID of the quantum processor the job ran on. This field is required, unless being used with the ``ConnectionStrategy.endpoint_id()`` or ``ConnectionStrategy.endpoint_address()`` execution option.
|
|
374
388
|
:param client: The ``Qcs`` client to use. Creates one using environment configuration if unset - see https://docs.rigetti.com/qcs/references/qcs-client-configuration
|
|
375
389
|
:param execution_options: The ``ExecutionOptions`` to use.
|
|
376
390
|
|
|
@@ -387,12 +401,14 @@ def submit(program: builtins.str, patch_values: typing.Mapping[builtins.str, typ
|
|
|
387
401
|
:param program: An executable program (see ``qcs_sdk.qpu.translation.translate``).
|
|
388
402
|
:param patch_values: A mapping of symbols to their desired values (see ``build_patch_values``).
|
|
389
403
|
:param quantum_processor_id: The ID of the quantum processor to run the executable on.
|
|
390
|
-
This field is required, unless being used with the ``ConnectionStrategy.endpoint_id()``
|
|
404
|
+
This field is required, unless being used with the ``ConnectionStrategy.endpoint_id()``
|
|
405
|
+
or ``ConnectionStrategy.endpoint_address()`` execution option.
|
|
391
406
|
:param client: The ``Qcs`` client to use.
|
|
392
407
|
Creates one using environment configuration if unset.
|
|
393
408
|
See https://docs.rigetti.com/qcs/references/qcs-client-configuration for more information.
|
|
394
409
|
:param execution_options: The ``ExecutionOptions`` to use.
|
|
395
|
-
If the connection strategy option used is ``ConnectionStrategy.endpoint_id("endpoint_id")
|
|
410
|
+
If the connection strategy option used is ``ConnectionStrategy.endpoint_id("endpoint_id")``
|
|
411
|
+
or ``ConnectionStrategy.endpoint_address("http://some_endpoint_address")``,
|
|
396
412
|
then direct access to "endpoint_id" overrides the ``quantum_processor_id`` parameter.
|
|
397
413
|
|
|
398
414
|
:returns: The ID of the submitted job which can be used to fetch results.
|
|
@@ -408,12 +424,14 @@ def submit_async(program: builtins.str, patch_values: typing.Mapping[builtins.st
|
|
|
408
424
|
:param program: An executable program (see ``qcs_sdk.qpu.translation.translate``).
|
|
409
425
|
:param patch_values: A mapping of symbols to their desired values (see ``build_patch_values``).
|
|
410
426
|
:param quantum_processor_id: The ID of the quantum processor to run the executable on.
|
|
411
|
-
This field is required, unless being used with the ``ConnectionStrategy.endpoint_id()``
|
|
427
|
+
This field is required, unless being used with the ``ConnectionStrategy.endpoint_id()``
|
|
428
|
+
or ``ConnectionStrategy.endpoint_address()`` execution option.
|
|
412
429
|
:param client: The ``Qcs`` client to use.
|
|
413
430
|
Creates one using environment configuration if unset.
|
|
414
431
|
See https://docs.rigetti.com/qcs/references/qcs-client-configuration for more information.
|
|
415
432
|
:param execution_options: The ``ExecutionOptions`` to use.
|
|
416
|
-
If the connection strategy option used is ``ConnectionStrategy.endpoint_id("endpoint_id")
|
|
433
|
+
If the connection strategy option used is ``ConnectionStrategy.endpoint_id("endpoint_id")``
|
|
434
|
+
or ``ConnectionStrategy.endpoint_address("http://some_endpoint_address")``,
|
|
417
435
|
then direct access to "endpoint_id" overrides the ``quantum_processor_id`` parameter.
|
|
418
436
|
|
|
419
437
|
:returns: The ID of the submitted job which can be used to fetch results.
|
|
@@ -433,7 +451,7 @@ def submit_with_parameter_batch(program: builtins.str, patch_values: typing.Sequ
|
|
|
433
451
|
|
|
434
452
|
:param program: An executable program (see ``translate``).
|
|
435
453
|
:param patch_values: An iterable containing one or more mapping of symbols to their desired values.
|
|
436
|
-
:param quantum_processor_id: The ID of the quantum processor to run the executable on. This field is required, unless being used with the ``ConnectionStrategy.endpoint_id()`` execution option.
|
|
454
|
+
:param quantum_processor_id: The ID of the quantum processor to run the executable on. This field is required, unless being used with the ``ConnectionStrategy.endpoint_id()`` or ``ConnectionStrategy.endpoint_address()`` execution option.
|
|
437
455
|
:param client: The ``Qcs`` client to use. Creates one using environment configuration if unset - see https://docs.rigetti.com/qcs/references/qcs-client-configuration
|
|
438
456
|
:param execution_options: The ``ExecutionOptions`` to use.
|
|
439
457
|
|
|
@@ -454,7 +472,7 @@ def submit_with_parameter_batch_async(program: builtins.str, patch_values: typin
|
|
|
454
472
|
|
|
455
473
|
:param program: An executable program (see ``translate``).
|
|
456
474
|
:param patch_values: An iterable containing one or more mapping of symbols to their desired values.
|
|
457
|
-
:param quantum_processor_id: The ID of the quantum processor to run the executable on. This field is required, unless being used with the ``ConnectionStrategy.endpoint_id()`` execution option.
|
|
475
|
+
:param quantum_processor_id: The ID of the quantum processor to run the executable on. This field is required, unless being used with the ``ConnectionStrategy.endpoint_id()`` or ``ConnectionStrategy.endpoint_address()`` execution option.
|
|
458
476
|
:param client: The ``Qcs`` client to use. Creates one using environment configuration if unset - see https://docs.rigetti.com/qcs/references/qcs-client-configuration
|
|
459
477
|
:param execution_options: The ``ExecutionOptions`` to use.
|
|
460
478
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/examples/delayed_job_retrieval.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/examples/parametric_compilation.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/compiler/isa/operator.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/python/execution_data.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/python/register_data.rs
RENAMED
|
File without changes
|
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/experimental/mod.rs
RENAMED
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/experimental/python.rs
RENAMED
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/experimental/random.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/src/qpu/translation/python.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests/bell_state_response_data.hex
RENAMED
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests/compiler-isa-Aspen-8.json
RENAMED
|
File without changes
|
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests/parametric_compilation.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/_fixtures/aspen-m-3.json
RENAMED
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/_fixtures/device-2q.json
RENAMED
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/_qcs_config/secrets.toml
RENAMED
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/_qcs_config/settings.toml
RENAMED
|
File without changes
|
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/compiler/test_quilc.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/qpu/test_translation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/test_diagnostics.py
RENAMED
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/test_executable.py
RENAMED
|
File without changes
|
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/crates/lib/tests_py/test_tracing_subscriber.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/_tracing_subscriber/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/qpu/experimental/__init__.pyi
RENAMED
|
File without changes
|
{qcs_sdk_python-0.26.0rc1 → qcs_sdk_python-0.26.0rc2}/python/qcs_sdk/qpu/experimental/random.pyi
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|