pub enum Service {
    Quilc,
    Qvm,
    Qcs,
    Qpu,
}
Expand description

The external services that this SDK may connect to. Used to differentiate between networking issues in Error::Connection.

Variants

Quilc

The open source quilc compiler.

This compiler must be running before calling Executable::execute_on_qpu unless the Executable::compile_with_quilc option is set to false. By default, it’s assumed that this is running on tcp://localhost:5555, but this can be overridden via [profiles.<profile_name>.applications.pyquil.quilc_url] in your .qcs/settings.toml file.

Qvm

The open source qvm simulator.

This simulator must be running before calling Executable::execute_on_qvm. By default, it’s assumed that this is running on http://localhost:5000, but this can be overridden via [profiles.<profile_name>.applications.pyquil.qvm_url] in your .qcs/settings.toml file.

Qcs

The connection to QCS, the API for authentication, QPU lookup, and translation.

You should be able to reach this service as long as you have a connection to the internet.

Qpu

The connection to the QPU itself. You can only connect to the QPU from an authorized network (like QCS JupyterLab).

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

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

This method tests for !=.

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

Compare self to key and return true if they are equal.

Returns the argument unchanged.

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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

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

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