![]() |
QPanda3
Supported by OriginQ
|
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 | |
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.
[in] | backend_name | The name of the quantum cloud backend. |
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.
[in] | chip_name | The name of the chip. |
ChipConfig
object. float pyqpanda3.qcloud.qcloud.QCloudBackend.expval_hamiltonian | ( | self, | |
prog, | |||
hamiltonian, | |||
int | shots = ..., | ||
QCloudNoiseModel | noise_model = ... ) |
expval_hamiltonian(*args, **kwargs) Overloaded function.
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.
prog | The quantum program to be executed. |
hamiltonian | The Hamiltonian for which the expected value is to be calculated. |
shots | The number of times the quantum program is sampled to estimate the expected value. Defaults to 1000 if not specified. |
noise_model | The noise model to be applied during the simulation on the QCloud backend. Defaults to a default-constructed NoiseModel if not specified. |
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.
prog | The quantum program to be executed. |
hamiltonian | The Hamiltonian for which the expected value is to be calculated. |
options | The QCloudOptions that specify the configuration for the execution on the QCloud backend. |
float pyqpanda3.qcloud.qcloud.QCloudBackend.expval_hamiltonian | ( | self, | |
prog, | |||
hamiltonian, | |||
QCloudOptions | options ) |
expval_hamiltonian(*args, **kwargs) Overloaded function.
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.
prog | The quantum program to be executed. |
hamiltonian | The Hamiltonian for which the expected value is to be calculated. |
shots | The number of times the quantum program is sampled to estimate the expected value. Defaults to 1000 if not specified. |
noise_model | The noise model to be applied during the simulation on the QCloud backend. Defaults to a default-constructed NoiseModel if not specified. |
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.
prog | The quantum program to be executed. |
hamiltonian | The Hamiltonian for which the expected value is to be calculated. |
options | The QCloudOptions that specify the configuration for the execution on the QCloud backend. |
float pyqpanda3.qcloud.qcloud.QCloudBackend.expval_pauli_operator | ( | self, | |
prog, | |||
pauli_operator, | |||
int | shots = ..., | ||
QCloudNoiseModel | noise_model = ... ) |
expval_pauli_operator(*args, **kwargs) Overloaded function.
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.
prog | The quantum program to be executed. |
pauli_operator | The Pauli operator for which the expected value is to be calculated. |
shots | The number of times the quantum program is sampled to estimate the expected value. Defaults to 1000 if not specified. |
noise_model | The noise model to be applied during the simulation on the QCloud backend. Defaults to a default-constructed NoiseModel if not specified. |
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.
prog | The quantum program to be executed. |
pauli_operator | The Pauli operator for which the expected value is to be calculated. |
options | The QCloudOptions that specify the configuration for the execution on the QCloud backend. |
float pyqpanda3.qcloud.qcloud.QCloudBackend.expval_pauli_operator | ( | self, | |
prog, | |||
pauli_operator, | |||
QCloudOptions | options ) |
expval_pauli_operator(*args, **kwargs) Overloaded function.
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.
prog | The quantum program to be executed. |
pauli_operator | The Pauli operator for which the expected value is to be calculated. |
shots | The number of times the quantum program is sampled to estimate the expected value. Defaults to 1000 if not specified. |
noise_model | The noise model to be applied during the simulation on the QCloud backend. Defaults to a default-constructed NoiseModel if not specified. |
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.
prog | The quantum program to be executed. |
pauli_operator | The Pauli operator for which the expected value is to be calculated. |
options | The QCloudOptions that specify the configuration for the execution on the QCloud backend. |
str pyqpanda3.qcloud.qcloud.QCloudBackend.name | ( | self | ) |
name(self: qcloud.qcloud.QCloudBackend) -> str
Retrieves the name of the quantum cloud backend.
QCloudJob pyqpanda3.qcloud.qcloud.QCloudBackend.run | ( | self, | |
prog, | |||
int | shots, | ||
QCloudNoiseModel | model = ... ) |
run(*args, **kwargs) Overloaded function.
@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.
@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.
@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.
@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.
@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.
@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.
@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.
QCloudJob pyqpanda3.qcloud.qcloud.QCloudBackend.run | ( | self, | |
prog, | |||
int | shots, | ||
QCloudOptions | options, | ||
bool | enable_binary_encoding = ... ) |
run(*args, **kwargs) Overloaded function.
@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.
@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.
@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.
@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.
@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.
@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.
@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.
QCloudJob pyqpanda3.qcloud.qcloud.QCloudBackend.run | ( | self, | |
prog, | |||
list[int] | qubits ) |
run(*args, **kwargs) Overloaded function.
@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.
@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.
@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.
@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.
@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.
@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.
@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.
QCloudJob pyqpanda3.qcloud.qcloud.QCloudBackend.run | ( | self, | |
prog, | |||
list[str] | amplitudes ) |
run(*args, **kwargs) Overloaded function.
@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.
@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.
@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.
@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.
@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.
@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.
@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.
QCloudJob pyqpanda3.qcloud.qcloud.QCloudBackend.run | ( | self, | |
prog, | |||
qubits ) |
run(*args, **kwargs) Overloaded function.
@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.
@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.
@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.
@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.
@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.
@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.
@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.
QCloudJob pyqpanda3.qcloud.qcloud.QCloudBackend.run | ( | self, | |
prog, | |||
str | amplitude ) |
run(*args, **kwargs) Overloaded function.
@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.
@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.
@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.
@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.
@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.
@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.
@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.
QCloudJob pyqpanda3.qcloud.qcloud.QCloudBackend.run | ( | self, | |
progs, | |||
int | shots, | ||
QCloudOptions | options, | ||
bool | enable_binary_encoding = ... ) |
run(*args, **kwargs) Overloaded function.
@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.
@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.
@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.
@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.
@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.
@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.
@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.
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.
[in] | prog | The quantum programs to run. |
[in] | shots | The number of shots to run. |
[in] | options | The options for running the programs. |
QCloudJob
object representing the job.