PyQPanda
一种功能齐全,运行高效的量子软件开发工具包
QPanda 2是由本源量子开发的开源量子计算框架,它可以用于构建、运行和优化量子算法。
QPanda 2作为本源量子计算系列软件的基础库,为OriginIR、Qurator、量子计算服务提供核心部件。
为了方便用户使用,QPanda 2为用户提供了Python版本的pyQPanda,本使用文档是pyQPanda的 教学文档,如希望学习C++版的QPanda 2,请参考 QPanda使用文档 。
- pyqpanda.pyQPanda
- Classes
- Functions
- Module Contents
AbstractOptimizer
AdaGradOptimizer
AdamOptimizer
Ansatz
AnsatzGate
AnsatzGateType
BackendType
CBit
CPUQVM
CPUSingleThreadQVM
ChipID
ClassicalCondition
ClassicalProg
CommProtocolConfig
ComplexVertexSplitMethod
DAGNodeType
DecompositionMode
DensityMatrixSimulator
DoubleGateTransferType
Encode
ErrorCode
Fusion
GateType
HHLAlg
LATEX_GATE_TYPE
LatexMatrix
MPSQVM
MomentumOptimizer
NodeInfo
NodeIter
NodeType
Noise
NoiseModel
NoiseQVM
Optimizer
OptimizerFactory
OptimizerMode
OptimizerType
OriginCMem
OriginCollection
OriginQubitPool
PartialAmpQVM
PhysicalQubit
PilotNoiseParams
ProgCount
QCircuit
QCircuitOPtimizerMode
QCloudService
QCloudTaskConfig
QError
QGate
QITE
QIfProg
QMachineType
QMeasure
QOperator
QOptimizationResult
QPilotMachine
QPilotOSService
QProg
QProgDAG
QProgDAGEdge
QProgDAGVertex
QReset
QResult
QVec
QWhileProg
QuantumMachine
QuantumStateTomography
Qubit
RMSPropOptimizer
SingleAmpQVM
SingleGateTransferType
SparseQVM
Stabilizer
UpdateMode
VanillaGradientDescentOptimizer
VariationalQuantumCircuit
VariationalQuantumGate
VariationalQuantumGate_CNOT
VariationalQuantumGate_CR
VariationalQuantumGate_CRX
VariationalQuantumGate_CRY
VariationalQuantumGate_CRZ
VariationalQuantumGate_CU
VariationalQuantumGate_CZ
VariationalQuantumGate_H
VariationalQuantumGate_I
VariationalQuantumGate_RX
VariationalQuantumGate_RY
VariationalQuantumGate_RZ
VariationalQuantumGate_S
VariationalQuantumGate_SWAP
VariationalQuantumGate_SqiSWAP
VariationalQuantumGate_T
VariationalQuantumGate_U1
VariationalQuantumGate_U2
VariationalQuantumGate_U3
VariationalQuantumGate_U4
VariationalQuantumGate_X
VariationalQuantumGate_X1
VariationalQuantumGate_Y
VariationalQuantumGate_Y1
VariationalQuantumGate_Z
VariationalQuantumGate_Z1
VariationalQuantumGate_iSWAP
em_method
expression
hadamard_circuit
real_chip_type
var
BARRIER()
CNOT()
CP()
CR()
CU()
CZ()
CreateEmptyCircuit()
CreateEmptyQProg()
CreateIfProg()
CreateWhileProg()
Grover()
Grover_search()
H()
HHL_solve_linear_equations()
I()
MAJ()
MAJ2()
MS()
Measure()
OBMT_mapping()
P()
PMeasure()
PMeasure_no_index()
QAdd()
QAdder()
QAdderIgnoreCarry()
QComplement()
QDiv()
QDivWithAccuracy()
QDivider()
QDividerWithAccuracy()
QDouble()
QFT()
QMul()
QMultiplier()
QOracle()
QPE()
QSub()
RX()
RXX()
RY()
RYY()
RZ()
RZX()
RZZ()
Reset()
S()
SWAP()
Shor_factorization()
SqiSWAP()
T()
Toffoli()
U1()
U2()
U3()
U4()
UMA()
VQG_CNOT_batch()
VQG_CU_batch()
VQG_CZ_batch()
VQG_H_batch()
VQG_I_batch()
VQG_SWAP_batch()
VQG_S_batch()
VQG_SqiSWAP_batch()
VQG_T_batch()
VQG_U1_batch()
VQG_U2_batch()
VQG_U3_batch()
VQG_U4_batch()
VQG_X1_batch()
VQG_X_batch()
VQG_Y1_batch()
VQG_Y_batch()
VQG_Z1_batch()
VQG_Z_batch()
VQG_iSWAP_batch()
X()
X1()
Y()
Y1()
Z()
Z1()
accumulateProbability()
accumulate_probabilities()
accumulate_probability()
acos()
add()
all_cut_of_graph()
amplitude_encode()
apply_QGate()
asin()
assign()
atan()
average_gate_fidelity()
bin_to_prog()
bind_data()
bind_nonnegative_data()
build_HHL_circuit()
cAlloc()
cAlloc_many()
cFree()
cFree_all()
calculate_quantum_volume()
cast_qprog_qcircuit()
cast_qprog_qgate()
cast_qprog_qmeasure()
circuit_layer()
circuit_optimizer()
circuit_optimizer_by_config()
comm_protocol_decode()
comm_protocol_encode()
constModAdd()
constModExp()
constModMul()
convert_binary_data_to_qprog()
convert_originir_str_to_qprog()
convert_originir_to_qprog()
convert_qasm_string_to_qprog()
convert_qasm_to_qprog()
convert_qprog_to_binary()
convert_qprog_to_originir()
convert_qprog_to_qasm()
convert_qprog_to_quil()
cos()
count_gate()
count_prog_info()
count_qgate_num()
create_empty_circuit()
create_empty_qprog()
create_if_prog()
create_while_prog()
crossEntropy()
decompose_multiple_control_qgate()
deep_copy()
del_weak_edge()
del_weak_edge2()
del_weak_edge3()
destroy_quantum_machine()
directly_run()
div()
dot()
double_gate_xeb()
double_qubit_rb()
draw_qprog_latex()
draw_qprog_latex_with_clock()
draw_qprog_text()
draw_qprog_text_with_clock()
dropout()
equal()
estimate_topology()
eval()
exp()
expMat()
expand_linear_equations()
fill_qprog_by_I()
finalize()
fit_to_gbk()
flatten()
getAllocateCMem()
getAllocateQubitNum()
get_adjacent_qgate_type()
get_all_used_qubits()
get_all_used_qubits_to_int()
get_allocate_cbits()
get_allocate_cmem_num()
get_allocate_qubit_num()
get_allocate_qubits()
get_bin_data()
get_bin_str()
get_circuit_optimal_topology()
get_clock_cycle()
get_complex_points()
get_double_gate_block_topology()
get_matrix()
get_prob_dict()
get_prob_list()
get_qgate_num()
get_qprog_clock_cycle()
get_qstate()
get_sub_graph()
get_tuple_list()
get_unitary()
get_unsupport_qgate_num()
getstat()
iSWAP()
init()
init_quantum_machine()
inverse()
isCarry()
is_match_topology()
is_supported_qgate_type()
is_swappable()
iterative_amplitude_estimation()
ldd_decompose()
log()
matrix_decompose()
matrix_decompose_paulis()
measure_all()
mul()
originir_to_qprog()
pauli_combination_replace()
planarity_testing()
pmeasure()
pmeasure_no_index()
poly()
print_matrix()
prob_run_dict()
prob_run_list()
prob_run_tuple_list()
prog_layer()
prog_to_dag()
qAlloc()
qAlloc_many()
qFree()
qFree_all()
qop()
qop_pmeasure()
quantum_chip_adapter()
quantum_walk_alg()
quantum_walk_search()
quick_measure()
random_qcircuit()
random_qprog()
recover_edges()
remap()
replace_complex_points()
run_with_configuration()
sabre_mapping()
sigmoid()
sin()
single_qubit_rb()
softmax()
split_complex_points()
stack()
state_fidelity()
sub()
sum()
tan()
to_Quil()
to_originir()
topology_match()
transform_binary_data_to_qprog()
transform_originir_to_qprog()
transform_qprog_to_binary()
transform_qprog_to_originir()
transform_qprog_to_quil()
transform_to_base_qgate()
transfrom_pauli_operator_to_matrix()
transpose()
validate_double_qgate_type()
validate_single_qgate_type()
vector_dot()
virtual_z_transform()
- pyqpanda.utils
- pyqpanda.Visualization
- Submodules
- pyqpanda.Visualization.bloch
- pyqpanda.Visualization.bloch_plot
- pyqpanda.Visualization.circuit_composer
- pyqpanda.Visualization.circuit_draw
- pyqpanda.Visualization.circuit_info
- pyqpanda.Visualization.circuit_style
- pyqpanda.Visualization.draw_probability_map
- pyqpanda.Visualization.exceptions
- pyqpanda.Visualization.matplotlib_draw
- pyqpanda.Visualization.parameterexpression
- pyqpanda.Visualization.pi_check
- pyqpanda.Visualization.quantum_state_plot
- pyqpanda.Visualization.utils
- Functions
- Package Contents
- Submodules