Struct qoqo_aqt::devices::SimulatorDeviceWrapper[][src]

pub struct SimulatorDeviceWrapper {
    pub internal: SimulatorDevice,
}
Expand description

AQT quantum simulator device

Provides endpoint that receives instructions that are simulated and returns measurement results.

Fields

internal: SimulatorDevice

Internal storage of [roqoqo_aqt::SimulatorDevice]

Implementations

Create new simulator device.

Args: number_qubits (int): Number of qubits that should be simulated

Return a copy of the SimulatorDevice (copy here produces a deepcopy).

Returns: SimulatorDevice: A deep copy of self.

Return a deep copy of the SimulatorDevice.

Returns: SimulatorDevice: A deep copy of self.

Return the bincode representation of the SimulatorDevice using the bincode crate.

Returns: ByteArray: The serialized SimulatorDevice (in bincode form).

Raises: ValueError: Cannot serialize SimulatorDevice to bytes.

Convert the bincode representation of the SimulatorDevice to a SimulatorDevice using the bincode crate.

Args: input (ByteArray): The serialized SimulatorDevice (in bincode form).

Returns: SimulatorDevice: The deserialized SimulatorDevice.

Raises: TypeError: Input cannot be converted to byte array. ValueError: Input cannot be deserialized to SimulatorDevice.

Return number of qubits simulated by Simulator.

Returns: int: The number of qubits.

Return the URL of the remote host executing Circuits.

Returns: str: The URL of the remote host executing the Circuits.

Return the bincode representation of the Enum variant of the Device.

Only used for internal interfacing.

Returns: ByteArray: The serialized AqtDevice (in bincode form).

Raises: ValueError: Cannot serialize Device to bytes.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Specify this class has #[pyclass(dict)] or not.

Specify this class has #[pyclass(weakref)] or not.

The closest native ancestor. This is PyAny by default, and when you declare #[pyclass(extends=PyDict)], it’s PyDict. Read more

Class doc string

#[pyclass(gc)]

#[pyclass(subclass)]

#[pyclass(extends=…)]

Layout

Base class

This handles following two situations: Read more

Utility type to make Py::as_ref work.

Class name.

Module name, if any.

PyTypeObject instance for this type.

Checks if object is an instance of this type or a subclass of this type.

Checks if object is an instance of this type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Extracts Self from the source PyObject.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Arguments for exception

Returns the safe abstraction over the type object.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more