QPanda3
Supported by OriginQ
Loading...
Searching...
No Matches
pyqpanda3.qcloud.qcloud.QCloudBackend Class Reference

Public Member Functions

None __init__ (self, str arg0)
 init(self: qcloud.qcloud.QCloudBackend, arg0: str) -> None
 
ChipInfo chip_info (self)
 chip_info(self: qcloud.qcloud.QCloudBackend) -> qcloud.qcloud.ChipInfo
 
float expval_hamiltonian (self, prog, hamiltonian, int shots=..., QCloudNoiseModel noise_model=...)
 expval_hamiltonian(*args, **kwargs) Overloaded function.
 
float expval_hamiltonian (self, prog, hamiltonian, QCloudOptions options)
 expval_hamiltonian(*args, **kwargs) Overloaded function.
 
float expval_pauli_operator (self, prog, pauli_operator, int shots=..., QCloudNoiseModel noise_model=...)
 expval_pauli_operator(*args, **kwargs) Overloaded function.
 
float expval_pauli_operator (self, prog, pauli_operator, QCloudOptions options)
 expval_pauli_operator(*args, **kwargs) Overloaded function.
 
str name (self)
 name(self: qcloud.qcloud.QCloudBackend) -> str
 
QCloudJob run (self, prog, int shots, QCloudNoiseModel model=...)
 run(*args, **kwargs) Overloaded function.
 
QCloudJob run (self, prog, list[int] qubits)
 run(*args, **kwargs) Overloaded function.
 
QCloudJob run (self, prog, qubits)
 run(*args, **kwargs) Overloaded function.
 
QCloudJob run (self, prog, int shots, QCloudOptions options, bool enable_binary_encoding=...)
 run(*args, **kwargs) Overloaded function.
 
QCloudJob run (self, progs, int shots, QCloudOptions options, bool enable_binary_encoding=...)
 run(*args, **kwargs) Overloaded function.
 
QCloudJob run (self, prog, list[str] amplitudes)
 run(*args, **kwargs) Overloaded function.
 
QCloudJob run (self, prog, str amplitude)
 run(*args, **kwargs) Overloaded function.
 
QCloudJob run_quantum_state_tomography (self, prog, int shots, QCloudOptions options=...)
 run_quantum_state_tomography(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, shots: int, options: qcloud.qcloud.QCloudOptions = False) -> qcloud.qcloud.QCloudJob
 

Constructor & Destructor Documentation

◆ __init__()

None pyqpanda3.qcloud.qcloud.QCloudBackend.__init__ ( self,
str arg0 )

init(self: qcloud.qcloud.QCloudBackend, arg0: str) -> None

Initializes a QCloudBackend with a given backend name.

Parameters
[in]backend_nameThe name of the quantum cloud backend.

Member Function Documentation

◆ chip_info()

ChipInfo pyqpanda3.qcloud.qcloud.QCloudBackend.chip_info ( self)

chip_info(self: qcloud.qcloud.QCloudBackend) -> qcloud.qcloud.ChipInfo

Retrieves the chip topology for a given chip name.

Parameters
[in]chip_nameThe name of the chip.
Returns
The chip topology as a ChipConfig object.

◆ expval_hamiltonian() [1/2]

float pyqpanda3.qcloud.qcloud.QCloudBackend.expval_hamiltonian ( self,
prog,
hamiltonian,
int shots = ...,
QCloudNoiseModel noise_model = ... )

expval_hamiltonian(*args, **kwargs) Overloaded function.

  1. expval_hamiltonian(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, hamiltonian: QPanda3::Hamiltonian, shots: int = 1000, noise_model: qcloud.qcloud.QCloudNoiseModel = <qcloud.qcloud.QCloudNoiseModel object at 0x7f523e5420b0>) -> float

Calculate the expected value of a given Hamiltonian with respect to a quantum program on the QCloud backend.

This member function of the QCloudBackend class computes the expected value (or expectation value) of a specified Hamiltonian using a quantum program, specifically for execution on a cloud-based quantum backend. It supports simulation with an optional noise model tailored for the cloud environment.

Parameters
progThe quantum program to be executed.
hamiltonianThe Hamiltonian for which the expected value is to be calculated.
shotsThe number of times the quantum program is sampled to estimate the expected value. Defaults to 1000 if not specified.
noise_modelThe noise model to be applied during the simulation on the QCloud backend. Defaults to a default-constructed NoiseModel if not specified.
Returns
The expected value of the Hamiltonian as a double.
  1. expval_hamiltonian(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, hamiltonian: QPanda3::Hamiltonian, options: qcloud.qcloud.QCloudOptions) -> float

Calculate the expected value of a given Hamiltonian with respect to a quantum program on the QCloud backend using specified options.

This member function of the QCloudBackend class computes the expected value (or expectation value) of a specified Hamiltonian using a quantum program. It allows for customization of the execution through QCloudOptions, which can include settings for the cloud-based quantum backend.

Parameters
progThe quantum program to be executed.
hamiltonianThe Hamiltonian for which the expected value is to be calculated.
optionsThe QCloudOptions that specify the configuration for the execution on the QCloud backend.
Returns
The expected value of the Hamiltonian as a double.

◆ expval_hamiltonian() [2/2]

float pyqpanda3.qcloud.qcloud.QCloudBackend.expval_hamiltonian ( self,
prog,
hamiltonian,
QCloudOptions options )

expval_hamiltonian(*args, **kwargs) Overloaded function.

  1. expval_hamiltonian(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, hamiltonian: QPanda3::Hamiltonian, shots: int = 1000, noise_model: qcloud.qcloud.QCloudNoiseModel = <qcloud.qcloud.QCloudNoiseModel object at 0x7f523e5420b0>) -> float

Calculate the expected value of a given Hamiltonian with respect to a quantum program on the QCloud backend.

This member function of the QCloudBackend class computes the expected value (or expectation value) of a specified Hamiltonian using a quantum program, specifically for execution on a cloud-based quantum backend. It supports simulation with an optional noise model tailored for the cloud environment.

Parameters
progThe quantum program to be executed.
hamiltonianThe Hamiltonian for which the expected value is to be calculated.
shotsThe number of times the quantum program is sampled to estimate the expected value. Defaults to 1000 if not specified.
noise_modelThe noise model to be applied during the simulation on the QCloud backend. Defaults to a default-constructed NoiseModel if not specified.
Returns
The expected value of the Hamiltonian as a double.
  1. expval_hamiltonian(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, hamiltonian: QPanda3::Hamiltonian, options: qcloud.qcloud.QCloudOptions) -> float

Calculate the expected value of a given Hamiltonian with respect to a quantum program on the QCloud backend using specified options.

This member function of the QCloudBackend class computes the expected value (or expectation value) of a specified Hamiltonian using a quantum program. It allows for customization of the execution through QCloudOptions, which can include settings for the cloud-based quantum backend.

Parameters
progThe quantum program to be executed.
hamiltonianThe Hamiltonian for which the expected value is to be calculated.
optionsThe QCloudOptions that specify the configuration for the execution on the QCloud backend.
Returns
The expected value of the Hamiltonian as a double.

◆ expval_pauli_operator() [1/2]

float pyqpanda3.qcloud.qcloud.QCloudBackend.expval_pauli_operator ( self,
prog,
pauli_operator,
int shots = ...,
QCloudNoiseModel noise_model = ... )

expval_pauli_operator(*args, **kwargs) Overloaded function.

  1. expval_pauli_operator(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, pauli_operator: QPanda3::PauliOperator, shots: int = 1000, noise_model: qcloud.qcloud.QCloudNoiseModel = <qcloud.qcloud.QCloudNoiseModel object at 0x7f523f1e9a70>) -> float

Calculate the expected value of a given Pauli operator with respect to a quantum program on the QCloud backend.

This member function of the QCloudBackend class computes the expected value (or expectation value) of a specified Pauli operator using a quantum program, intended for execution on a cloud-based quantum backend. It allows for the inclusion of an optional noise model specific to the cloud environment.

Parameters
progThe quantum program to be executed.
pauli_operatorThe Pauli operator for which the expected value is to be calculated.
shotsThe number of times the quantum program is sampled to estimate the expected value. Defaults to 1000 if not specified.
noise_modelThe noise model to be applied during the simulation on the QCloud backend. Defaults to a default-constructed NoiseModel if not specified.
Returns
The expected value of the Pauli operator as a double.
  1. expval_pauli_operator(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, pauli_operator: QPanda3::PauliOperator, options: qcloud.qcloud.QCloudOptions) -> float

Calculate the expected value of a given Pauli operator with respect to a quantum program on the QCloud backend using specified options.

This member function of the QCloudBackend class computes the expected value (or expectation value) of a specified Pauli operator using a quantum program. It provides flexibility in execution through QCloudOptions, which can include various settings tailored for the cloud-based quantum backend.

Parameters
progThe quantum program to be executed.
pauli_operatorThe Pauli operator for which the expected value is to be calculated.
optionsThe QCloudOptions that specify the configuration for the execution on the QCloud backend.
Returns
The expected value of the Pauli operator as a double.

◆ expval_pauli_operator() [2/2]

float pyqpanda3.qcloud.qcloud.QCloudBackend.expval_pauli_operator ( self,
prog,
pauli_operator,
QCloudOptions options )

expval_pauli_operator(*args, **kwargs) Overloaded function.

  1. expval_pauli_operator(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, pauli_operator: QPanda3::PauliOperator, shots: int = 1000, noise_model: qcloud.qcloud.QCloudNoiseModel = <qcloud.qcloud.QCloudNoiseModel object at 0x7f523f1e9a70>) -> float

Calculate the expected value of a given Pauli operator with respect to a quantum program on the QCloud backend.

This member function of the QCloudBackend class computes the expected value (or expectation value) of a specified Pauli operator using a quantum program, intended for execution on a cloud-based quantum backend. It allows for the inclusion of an optional noise model specific to the cloud environment.

Parameters
progThe quantum program to be executed.
pauli_operatorThe Pauli operator for which the expected value is to be calculated.
shotsThe number of times the quantum program is sampled to estimate the expected value. Defaults to 1000 if not specified.
noise_modelThe noise model to be applied during the simulation on the QCloud backend. Defaults to a default-constructed NoiseModel if not specified.
Returns
The expected value of the Pauli operator as a double.
  1. expval_pauli_operator(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, pauli_operator: QPanda3::PauliOperator, options: qcloud.qcloud.QCloudOptions) -> float

Calculate the expected value of a given Pauli operator with respect to a quantum program on the QCloud backend using specified options.

This member function of the QCloudBackend class computes the expected value (or expectation value) of a specified Pauli operator using a quantum program. It provides flexibility in execution through QCloudOptions, which can include various settings tailored for the cloud-based quantum backend.

Parameters
progThe quantum program to be executed.
pauli_operatorThe Pauli operator for which the expected value is to be calculated.
optionsThe QCloudOptions that specify the configuration for the execution on the QCloud backend.
Returns
The expected value of the Pauli operator as a double.

◆ name()

str pyqpanda3.qcloud.qcloud.QCloudBackend.name ( self)

name(self: qcloud.qcloud.QCloudBackend) -> str

Retrieves the name of the quantum cloud backend.

Returns
The name of the backend.

◆ run() [1/7]

QCloudJob pyqpanda3.qcloud.qcloud.QCloudBackend.run ( self,
prog,
int shots,
QCloudNoiseModel model = ... )

run(*args, **kwargs) Overloaded function.

  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, shots: int, model: qcloud.qcloud.QCloudNoiseModel = <qcloud.qcloud.QCloudNoiseModel object at 0x7f523f133270>) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits and noise model (optional).
@param[in] prog The quantum program to run.
@param[in] shots The number of shots to run.
@param[in] model The noise model to apply during execution (optional).
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, qubits: list[int]) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits.
@param[in] prog The quantum program to run.
@param[in] qubits The list of qubits to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, qubits: std::initializer_list<unsigned long>) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits using an initializer list.
@param[in] prog The quantum program to run.
@param[in] qubits The list of qubits to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, shots: int, options: qcloud.qcloud.QCloudOptions, enable_binary_encoding: bool = False) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified options.
@param[in] prog The quantum program to run.
@param[in] shots The number of shots to run.
@param[in] options The options for running the program.
@param[in] enable_binary_encoding The options for enable binary encoding.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, progs: list[QPanda3::QProg], shots: int, options: qcloud.qcloud.QCloudOptions, enable_binary_encoding: bool = False) -> qcloud.qcloud.QCloudJob
@brief Runs multiple quantum programs on the backend with specified options.
@param[in] progs The list of quantum programs to run.
@param[in] shots The number of shots to run.
@param[in] options The options for running the programs.
@param[in] enable_binary_encoding The options for enable binary encoding.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, amplitudes: list[str]) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified amplitude list.
@param[in] prog The quantum program to run.
@param[in] amplitudes A list of amplitude names to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, amplitude: str) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with a single amplitude.
@param[in] prog The quantum program to run.
@param[in] amplitude The name of the amplitude to run the program on.
@return A `QCloudJob` object representing the job.

◆ run() [2/7]

QCloudJob pyqpanda3.qcloud.qcloud.QCloudBackend.run ( self,
prog,
int shots,
QCloudOptions options,
bool enable_binary_encoding = ... )

run(*args, **kwargs) Overloaded function.

  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, shots: int, model: qcloud.qcloud.QCloudNoiseModel = <qcloud.qcloud.QCloudNoiseModel object at 0x7f523f133270>) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits and noise model (optional).
@param[in] prog The quantum program to run.
@param[in] shots The number of shots to run.
@param[in] model The noise model to apply during execution (optional).
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, qubits: list[int]) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits.
@param[in] prog The quantum program to run.
@param[in] qubits The list of qubits to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, qubits: std::initializer_list<unsigned long>) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits using an initializer list.
@param[in] prog The quantum program to run.
@param[in] qubits The list of qubits to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, shots: int, options: qcloud.qcloud.QCloudOptions, enable_binary_encoding: bool = False) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified options.
@param[in] prog The quantum program to run.
@param[in] shots The number of shots to run.
@param[in] options The options for running the program.
@param[in] enable_binary_encoding The options for enable binary encoding.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, progs: list[QPanda3::QProg], shots: int, options: qcloud.qcloud.QCloudOptions, enable_binary_encoding: bool = False) -> qcloud.qcloud.QCloudJob
@brief Runs multiple quantum programs on the backend with specified options.
@param[in] progs The list of quantum programs to run.
@param[in] shots The number of shots to run.
@param[in] options The options for running the programs.
@param[in] enable_binary_encoding The options for enable binary encoding.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, amplitudes: list[str]) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified amplitude list.
@param[in] prog The quantum program to run.
@param[in] amplitudes A list of amplitude names to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, amplitude: str) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with a single amplitude.
@param[in] prog The quantum program to run.
@param[in] amplitude The name of the amplitude to run the program on.
@return A `QCloudJob` object representing the job.

◆ run() [3/7]

QCloudJob pyqpanda3.qcloud.qcloud.QCloudBackend.run ( self,
prog,
list[int] qubits )

run(*args, **kwargs) Overloaded function.

  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, shots: int, model: qcloud.qcloud.QCloudNoiseModel = <qcloud.qcloud.QCloudNoiseModel object at 0x7f523f133270>) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits and noise model (optional).
@param[in] prog The quantum program to run.
@param[in] shots The number of shots to run.
@param[in] model The noise model to apply during execution (optional).
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, qubits: list[int]) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits.
@param[in] prog The quantum program to run.
@param[in] qubits The list of qubits to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, qubits: std::initializer_list<unsigned long>) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits using an initializer list.
@param[in] prog The quantum program to run.
@param[in] qubits The list of qubits to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, shots: int, options: qcloud.qcloud.QCloudOptions, enable_binary_encoding: bool = False) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified options.
@param[in] prog The quantum program to run.
@param[in] shots The number of shots to run.
@param[in] options The options for running the program.
@param[in] enable_binary_encoding The options for enable binary encoding.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, progs: list[QPanda3::QProg], shots: int, options: qcloud.qcloud.QCloudOptions, enable_binary_encoding: bool = False) -> qcloud.qcloud.QCloudJob
@brief Runs multiple quantum programs on the backend with specified options.
@param[in] progs The list of quantum programs to run.
@param[in] shots The number of shots to run.
@param[in] options The options for running the programs.
@param[in] enable_binary_encoding The options for enable binary encoding.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, amplitudes: list[str]) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified amplitude list.
@param[in] prog The quantum program to run.
@param[in] amplitudes A list of amplitude names to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, amplitude: str) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with a single amplitude.
@param[in] prog The quantum program to run.
@param[in] amplitude The name of the amplitude to run the program on.
@return A `QCloudJob` object representing the job.

◆ run() [4/7]

QCloudJob pyqpanda3.qcloud.qcloud.QCloudBackend.run ( self,
prog,
list[str] amplitudes )

run(*args, **kwargs) Overloaded function.

  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, shots: int, model: qcloud.qcloud.QCloudNoiseModel = <qcloud.qcloud.QCloudNoiseModel object at 0x7f523f133270>) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits and noise model (optional).
@param[in] prog The quantum program to run.
@param[in] shots The number of shots to run.
@param[in] model The noise model to apply during execution (optional).
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, qubits: list[int]) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits.
@param[in] prog The quantum program to run.
@param[in] qubits The list of qubits to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, qubits: std::initializer_list<unsigned long>) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits using an initializer list.
@param[in] prog The quantum program to run.
@param[in] qubits The list of qubits to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, shots: int, options: qcloud.qcloud.QCloudOptions, enable_binary_encoding: bool = False) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified options.
@param[in] prog The quantum program to run.
@param[in] shots The number of shots to run.
@param[in] options The options for running the program.
@param[in] enable_binary_encoding The options for enable binary encoding.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, progs: list[QPanda3::QProg], shots: int, options: qcloud.qcloud.QCloudOptions, enable_binary_encoding: bool = False) -> qcloud.qcloud.QCloudJob
@brief Runs multiple quantum programs on the backend with specified options.
@param[in] progs The list of quantum programs to run.
@param[in] shots The number of shots to run.
@param[in] options The options for running the programs.
@param[in] enable_binary_encoding The options for enable binary encoding.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, amplitudes: list[str]) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified amplitude list.
@param[in] prog The quantum program to run.
@param[in] amplitudes A list of amplitude names to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, amplitude: str) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with a single amplitude.
@param[in] prog The quantum program to run.
@param[in] amplitude The name of the amplitude to run the program on.
@return A `QCloudJob` object representing the job.

◆ run() [5/7]

QCloudJob pyqpanda3.qcloud.qcloud.QCloudBackend.run ( self,
prog,
qubits )

run(*args, **kwargs) Overloaded function.

  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, shots: int, model: qcloud.qcloud.QCloudNoiseModel = <qcloud.qcloud.QCloudNoiseModel object at 0x7f523f133270>) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits and noise model (optional).
@param[in] prog The quantum program to run.
@param[in] shots The number of shots to run.
@param[in] model The noise model to apply during execution (optional).
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, qubits: list[int]) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits.
@param[in] prog The quantum program to run.
@param[in] qubits The list of qubits to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, qubits: std::initializer_list<unsigned long>) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits using an initializer list.
@param[in] prog The quantum program to run.
@param[in] qubits The list of qubits to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, shots: int, options: qcloud.qcloud.QCloudOptions, enable_binary_encoding: bool = False) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified options.
@param[in] prog The quantum program to run.
@param[in] shots The number of shots to run.
@param[in] options The options for running the program.
@param[in] enable_binary_encoding The options for enable binary encoding.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, progs: list[QPanda3::QProg], shots: int, options: qcloud.qcloud.QCloudOptions, enable_binary_encoding: bool = False) -> qcloud.qcloud.QCloudJob
@brief Runs multiple quantum programs on the backend with specified options.
@param[in] progs The list of quantum programs to run.
@param[in] shots The number of shots to run.
@param[in] options The options for running the programs.
@param[in] enable_binary_encoding The options for enable binary encoding.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, amplitudes: list[str]) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified amplitude list.
@param[in] prog The quantum program to run.
@param[in] amplitudes A list of amplitude names to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, amplitude: str) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with a single amplitude.
@param[in] prog The quantum program to run.
@param[in] amplitude The name of the amplitude to run the program on.
@return A `QCloudJob` object representing the job.

◆ run() [6/7]

QCloudJob pyqpanda3.qcloud.qcloud.QCloudBackend.run ( self,
prog,
str amplitude )

run(*args, **kwargs) Overloaded function.

  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, shots: int, model: qcloud.qcloud.QCloudNoiseModel = <qcloud.qcloud.QCloudNoiseModel object at 0x7f523f133270>) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits and noise model (optional).
@param[in] prog The quantum program to run.
@param[in] shots The number of shots to run.
@param[in] model The noise model to apply during execution (optional).
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, qubits: list[int]) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits.
@param[in] prog The quantum program to run.
@param[in] qubits The list of qubits to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, qubits: std::initializer_list<unsigned long>) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits using an initializer list.
@param[in] prog The quantum program to run.
@param[in] qubits The list of qubits to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, shots: int, options: qcloud.qcloud.QCloudOptions, enable_binary_encoding: bool = False) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified options.
@param[in] prog The quantum program to run.
@param[in] shots The number of shots to run.
@param[in] options The options for running the program.
@param[in] enable_binary_encoding The options for enable binary encoding.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, progs: list[QPanda3::QProg], shots: int, options: qcloud.qcloud.QCloudOptions, enable_binary_encoding: bool = False) -> qcloud.qcloud.QCloudJob
@brief Runs multiple quantum programs on the backend with specified options.
@param[in] progs The list of quantum programs to run.
@param[in] shots The number of shots to run.
@param[in] options The options for running the programs.
@param[in] enable_binary_encoding The options for enable binary encoding.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, amplitudes: list[str]) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified amplitude list.
@param[in] prog The quantum program to run.
@param[in] amplitudes A list of amplitude names to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, amplitude: str) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with a single amplitude.
@param[in] prog The quantum program to run.
@param[in] amplitude The name of the amplitude to run the program on.
@return A `QCloudJob` object representing the job.

◆ run() [7/7]

QCloudJob pyqpanda3.qcloud.qcloud.QCloudBackend.run ( self,
progs,
int shots,
QCloudOptions options,
bool enable_binary_encoding = ... )

run(*args, **kwargs) Overloaded function.

  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, shots: int, model: qcloud.qcloud.QCloudNoiseModel = <qcloud.qcloud.QCloudNoiseModel object at 0x7f523f133270>) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits and noise model (optional).
@param[in] prog The quantum program to run.
@param[in] shots The number of shots to run.
@param[in] model The noise model to apply during execution (optional).
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, qubits: list[int]) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits.
@param[in] prog The quantum program to run.
@param[in] qubits The list of qubits to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, qubits: std::initializer_list<unsigned long>) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified qubits using an initializer list.
@param[in] prog The quantum program to run.
@param[in] qubits The list of qubits to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, shots: int, options: qcloud.qcloud.QCloudOptions, enable_binary_encoding: bool = False) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified options.
@param[in] prog The quantum program to run.
@param[in] shots The number of shots to run.
@param[in] options The options for running the program.
@param[in] enable_binary_encoding The options for enable binary encoding.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, progs: list[QPanda3::QProg], shots: int, options: qcloud.qcloud.QCloudOptions, enable_binary_encoding: bool = False) -> qcloud.qcloud.QCloudJob
@brief Runs multiple quantum programs on the backend with specified options.
@param[in] progs The list of quantum programs to run.
@param[in] shots The number of shots to run.
@param[in] options The options for running the programs.
@param[in] enable_binary_encoding The options for enable binary encoding.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, amplitudes: list[str]) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with specified amplitude list.
@param[in] prog The quantum program to run.
@param[in] amplitudes A list of amplitude names to run the program on.
@return A `QCloudJob` object representing the job.
  1. run(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, amplitude: str) -> qcloud.qcloud.QCloudJob
@brief Runs a quantum program on the backend with a single amplitude.
@param[in] prog The quantum program to run.
@param[in] amplitude The name of the amplitude to run the program on.
@return A `QCloudJob` object representing the job.

◆ run_quantum_state_tomography()

QCloudJob pyqpanda3.qcloud.qcloud.QCloudBackend.run_quantum_state_tomography ( self,
prog,
int shots,
QCloudOptions options = ... )

run_quantum_state_tomography(self: qcloud.qcloud.QCloudBackend, prog: QPanda3::QProg, shots: int, options: qcloud.qcloud.QCloudOptions = False) -> qcloud.qcloud.QCloudJob

Runs quantum state tomography on the backend with specified options.

Parameters
[in]progThe quantum programs to run.
[in]shotsThe number of shots to run.
[in]optionsThe options for running the programs.
Returns
A QCloudJob object representing the job.

The documentation for this class was generated from the following file: