@@ -603,29 +603,9 @@ impl<'execution> Executable<'_, 'execution> {
603603/// [`Executable::execute_on_qvm`]..
604604#[ derive( Debug , thiserror:: Error ) ]
605605pub enum Error {
606- /// Communicating with QCS requires appropriate settings and secrets files. By default, these
607- /// should be `$HOME/.qcs/settings.toml` and `$HOME/.qcs/secrets.toml`, though those files can
608- /// be overridden by setting the `QCS_SETTINGS_FILE_PATH` and `QCS_SECRETS_FILE_PATH`
609- /// environment variables.
610- ///
611- /// This error can occur when one of those files is required but missing or there is a problem
612- /// with the contents of those files.
613- #[ error( "There was a problem related to your QCS settings: {0}" ) ]
614- Settings ( String ) ,
615- /// This error occurs when the SDK was unable to authenticate a request to QCS. This could mean
616- /// that your credentials are invalid or expired, or that you do not have access to the requested
617- /// QPU.
618- #[ error( "Could not authenticate a request to QCS for the requested QPU." ) ]
619- Authentication ,
620606 /// An API error occurred while connecting to the QPU.
621607 #[ error( "An API error occurred while connecting to the QPU: {0}" ) ]
622608 QpuApiError ( #[ from] qpu:: api:: QpuApiError ) ,
623- /// This happens when the QPU is down for maintenance and not accepting new jobs. If you receive
624- /// this error, internal compilation caches will have been cleared as programs should be recompiled
625- /// with new settings after a maintenance window. If you are mid-experiment, you might want to
626- /// start over.
627- #[ error( "QPU currently unavailable, retry after {} seconds" , . 0 . as_secs( ) ) ]
628- QpuUnavailable ( Duration ) ,
629609 /// Indicates a problem connecting to an external service. Check your network connection and
630610 /// ensure that any required local services (e.g., `qvm` or `quilc`) are running.
631611 #[ error( "Error connecting to service {0:?}" ) ]
@@ -650,22 +630,11 @@ pub enum Error {
650630 /// There was a problem when substituting parameters in the Quil program.
651631 #[ error( "There was a problem substituting parameters in the Quil program: {0}" ) ]
652632 Substitution ( String ) ,
653- /// The Quil program is missing readout sources.
654- #[ error( "The Quil program is missing readout sources" ) ]
655- MissingRoSources ,
656633 /// This error returns when a runtime check that _should_ always pass fails. This most likely
657634 /// indicates a bug in the SDK and should be reported to
658635 /// [GitHub](https://github.com/rigetti/qcs-sdk-rust/issues),
659636 #[ error( "An unexpected error occurred, please open an issue on GitHub: {0:?}" ) ]
660637 Unexpected ( String ) ,
661- /// Occurs when [`Executable::retrieve_results`] is called with an invalid [`JobHandle`].
662- /// Calling functions on [`Executable`] between [`Executable::submit_to_qpu`] and
663- /// [`Executable::retrieve_results`] can invalidate the handle.
664- #[ error( "The job handle was not valid" ) ]
665- InvalidJobHandle ,
666- /// Occurs when failing to construct a [`Qcs`] client.
667- #[ error( "The QCS client configuration failed to load" ) ]
668- QcsConfigLoadFailure ( #[ from] LoadError ) ,
669638}
670639
671640#[ derive( Debug , Copy , Clone , Eq , PartialEq ) ]
0 commit comments