QPanda3
0.1.0
Supported by OriginQ
|
Public Member Functions | |
None | __init__ (self, str arg0) |
init(self: qcloud.QCloudBackend, arg0: str) -> None | |
float | expval_hamiltonian (self, prog, hamiltonian, list[int] qubits) |
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, list[int] qubits) |
expval_pauli_operator(*args, **kwargs) Overloaded function. | |
float | expval_pauli_operator (self, prog, pauli_operator, QCloudOptions options) |
expval_pauli_operator(*args, **kwargs) Overloaded function. | |
dict[int, list[QubitEdge]] | get_chip_topology (self) |
get_chip_topology(self: qcloud.QCloudBackend) -> dict[int, list[qcloud.QubitEdge]] | |
str | name (self) |
name(self: 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) |
run(*args, **kwargs) Overloaded function. | |
QCloudJob | run (self, prog, int shots, QCloudOptions options) |
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. | |
None pyqpanda3.qcloud.QCloudBackend.__init__ | ( | self, | |
str | arg0 ) |
init(self: qcloud.QCloudBackend, arg0: str) -> None
Initializes a QCloudBackend with a given backend name.
[in] | backend_name | The name of the quantum cloud backend. |
float pyqpanda3.qcloud.QCloudBackend.expval_hamiltonian | ( | self, | |
prog, | |||
hamiltonian, | |||
list[int] | qubits ) |
expval_hamiltonian(*args, **kwargs) Overloaded function.
float pyqpanda3.qcloud.QCloudBackend.expval_hamiltonian | ( | self, | |
prog, | |||
hamiltonian, | |||
QCloudOptions | options ) |
expval_hamiltonian(*args, **kwargs) Overloaded function.
float pyqpanda3.qcloud.QCloudBackend.expval_pauli_operator | ( | self, | |
prog, | |||
pauli_operator, | |||
list[int] | qubits ) |
expval_pauli_operator(*args, **kwargs) Overloaded function.
float pyqpanda3.qcloud.QCloudBackend.expval_pauli_operator | ( | self, | |
prog, | |||
pauli_operator, | |||
QCloudOptions | options ) |
expval_pauli_operator(*args, **kwargs) Overloaded function.
dict[int, list[QubitEdge]] pyqpanda3.qcloud.QCloudBackend.get_chip_topology | ( | self | ) |
get_chip_topology(self: qcloud.QCloudBackend) -> dict[int, list[qcloud.QubitEdge]]
Retrieves the chip topology for a given chip name.
[in] | chip_name | The name of the chip. |
ChipConfig
object. str pyqpanda3.qcloud.QCloudBackend.name | ( | self | ) |
name(self: qcloud.QCloudBackend) -> str
Retrieves the name of the quantum cloud backend.
QCloudJob pyqpanda3.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. @return A `QCloudJob` object representing the job.
@brief Runs multiple quantum programs on the backend with specified options. @param[in] prog 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. @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.QCloudBackend.run | ( | self, | |
prog, | |||
int | shots, | ||
QCloudOptions | options ) |
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. @return A `QCloudJob` object representing the job.
@brief Runs multiple quantum programs on the backend with specified options. @param[in] prog 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. @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.QCloudBackend.run | ( | self, | |
prog, | |||
int | shots, | ||
QCloudOptions | options ) |
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. @return A `QCloudJob` object representing the job.
@brief Runs multiple quantum programs on the backend with specified options. @param[in] prog 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. @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.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. @return A `QCloudJob` object representing the job.
@brief Runs multiple quantum programs on the backend with specified options. @param[in] prog 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. @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.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. @return A `QCloudJob` object representing the job.
@brief Runs multiple quantum programs on the backend with specified options. @param[in] prog 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. @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.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. @return A `QCloudJob` object representing the job.
@brief Runs multiple quantum programs on the backend with specified options. @param[in] prog 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. @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.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. @return A `QCloudJob` object representing the job.
@brief Runs multiple quantum programs on the backend with specified options. @param[in] prog 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. @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.