qcs_sdk
The Python wrapper for [ResultData::Qpu
], creating a [PyResultData
] and taking a Python argument.
The Python wrapper for [ResultData::Qvm
], creating a [PyResultData
] and taking a Python argument.
Directly return the Python version of the variant discriminant wrapped by this value; i.e., performs the match ResultData::Variant(x) => x
for every variant constructor in [ResultData
]
Returns x
if this [PyResultData
] wraps a ResultData::qpu
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyResultData
] wraps a ResultData::qpu
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyResultData
] wraps a ResultData::qvm
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
The Python wrapper for [RegisterData::I8
], creating a [PyRegisterData
] and taking a Python argument.
The Python wrapper for [RegisterData::F64
], creating a [PyRegisterData
] and taking a Python argument.
The Python wrapper for [RegisterData::I16
], creating a [PyRegisterData
] and taking a Python argument.
The Python wrapper for [RegisterData::Complex32
], creating a [PyRegisterData
] and taking a Python argument.
Directly return the Python version of the variant discriminant wrapped by this value; i.e., performs the match RegisterData::Variant(x) => x
for every variant constructor in [RegisterData
]
Returns x
if this [PyRegisterData
] wraps a RegisterData::i8
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyRegisterData
] wraps a RegisterData::i8
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyRegisterData
] wraps a RegisterData::f64
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyRegisterData
] wraps a RegisterData::f64
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyRegisterData
] wraps a RegisterData::i16
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyRegisterData
] wraps a RegisterData::i16
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyRegisterData
] wraps a RegisterData::complex32
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Unspecified run-time error.
Inappropriate argument value (of correct type).