qcs_sdk.qpu
A wrapper type for data returned by the QPU in a more flat structure than
[PyQpuResultData
] offers. This makes it more convenient to work with
the data if you don't care what type of number the readout values for
each register contains.
The Python wrapper for [ReadoutValues::Integer
], creating a [PyReadoutValues
] and taking a Python argument.
The Python wrapper for [ReadoutValues::Real
], creating a [PyReadoutValues
] and taking a Python argument.
The Python wrapper for [ReadoutValues::Complex
], creating a [PyReadoutValues
] and taking a Python argument.
Directly return the Python version of the variant discriminant wrapped by this value; i.e., performs the match ReadoutValues::Variant(x) => x
for every variant constructor in [ReadoutValues
]
Returns x
if this [PyReadoutValues
] wraps a ReadoutValues::integer
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyReadoutValues
] wraps a ReadoutValues::integer
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyReadoutValues
] wraps a ReadoutValues::real
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyReadoutValues
] wraps a ReadoutValues::real
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
The Python wrapper for [MemoryValues::Binary
], creating a [PyMemoryValues
] and taking a Python argument.
The Python wrapper for [MemoryValues::Integer
], creating a [PyMemoryValues
] and taking a Python argument.
The Python wrapper for [MemoryValues::Real
], creating a [PyMemoryValues
] and taking a Python argument.
Directly return the Python version of the variant discriminant wrapped by this value; i.e., performs the match MemoryValues::Variant(x) => x
for every variant constructor in [MemoryValues
]
Returns x
if this [PyMemoryValues
] wraps a MemoryValues::binary
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyMemoryValues
] wraps a MemoryValues::binary
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Returns x
if this [PyMemoryValues
] wraps a MemoryValues::integer
(x); otherwise returns (Python) None
. On the Rust side, this corresponds to either Some(x)
or [None
].
Returns x
if this [PyMemoryValues
] wraps a MemoryValues::integer
(x); otherwise raises a ValueError
. On the Rust side, this corresponds to either Ok(x)
or Err(...)
.
Unspecified run-time error.