API Reference#
Submodules#
- qiboml.backends package
MetaBackend- Submodules
- qiboml.backends.jax module
zero_state()zero_density_matrix()cast_matrix()_apply_gate()_apply_gate_controlled()JaxMatricesJaxMatrices._cast()JaxMatrices.Align()JaxMatrices.CCZJaxMatrices.CNOTJaxMatrices.CRX()JaxMatrices.CRY()JaxMatrices.CRZ()JaxMatrices.CSXJaxMatrices.CSXDGJaxMatrices.CU1()JaxMatrices.CU2()JaxMatrices.CU3()JaxMatrices.CYJaxMatrices.CZJaxMatrices.CallbackGate()JaxMatrices.DEUTSCH()JaxMatrices.ECRJaxMatrices.FSWAPJaxMatrices.FanOut()JaxMatrices.FusedGate()JaxMatrices.GIVENS()JaxMatrices.GPI()JaxMatrices.GPI2()JaxMatrices.GeneralizedRBS()JaxMatrices.GeneralizedfSim()JaxMatrices.HJaxMatrices.I()JaxMatrices.M()JaxMatrices.MS()JaxMatrices.PRX()JaxMatrices.PartialTrace()JaxMatrices.PauliNoiseChannel()JaxMatrices.RBS()JaxMatrices.RX()JaxMatrices.RXX()JaxMatrices.RXXYY()JaxMatrices.RY()JaxMatrices.RYY()JaxMatrices.RZ()JaxMatrices.RZX()JaxMatrices.RZZ()JaxMatrices.ResetChannel()JaxMatrices.SJaxMatrices.SDGJaxMatrices.SWAPJaxMatrices.SXJaxMatrices.SXDGJaxMatrices.SYCJaxMatrices.SiSWAPJaxMatrices.SiSWAPDGJaxMatrices.TJaxMatrices.TDGJaxMatrices.TOFFOLIJaxMatrices.ThermalRelaxationChannel()JaxMatrices.U1()JaxMatrices.U1q()JaxMatrices.U2()JaxMatrices.U3()JaxMatrices.Unitary()JaxMatrices.UnitaryChannel()JaxMatrices.XJaxMatrices.YJaxMatrices.ZJaxMatrices.fSim()JaxMatrices.iSWAP
JaxBackendJaxBackend.cast()JaxBackend.to_numpy()JaxBackend.set_seed()JaxBackend.sample_shots()JaxBackend.matrix_fused()JaxBackend.zero_state()JaxBackend.zero_density_matrix()JaxBackend.plus_state()JaxBackend.plus_density_matrix()JaxBackend.update_frequencies()JaxBackend.matrix()JaxBackend._abc_implJaxBackend._append_zeros()JaxBackend._order_probabilities()JaxBackend.aggregate_shots()JaxBackend.apply_bitflips()JaxBackend.apply_channel()JaxBackend.apply_channel_density_matrix()JaxBackend.apply_gate()JaxBackend.apply_gate_half_density_matrix()JaxBackend.assert_allclose()JaxBackend.assert_circuitclose()JaxBackend.calculate_eigenvalues()JaxBackend.calculate_eigenvectors()JaxBackend.calculate_expectation_density_matrix()JaxBackend.calculate_expectation_state()JaxBackend.calculate_frequencies()JaxBackend.calculate_jacobian_matrix()JaxBackend.calculate_matrix_exp()JaxBackend.calculate_matrix_log()JaxBackend.calculate_matrix_norm()JaxBackend.calculate_matrix_power()JaxBackend.calculate_matrix_sqrt()JaxBackend.calculate_overlap()JaxBackend.calculate_overlap_density_matrix()JaxBackend.calculate_probabilities()JaxBackend.calculate_probabilities_density_matrix()JaxBackend.calculate_singular_value_decomposition()JaxBackend.calculate_symbolic()JaxBackend.calculate_symbolic_density_matrix()JaxBackend.calculate_vector_norm()JaxBackend.collapse_density_matrix()JaxBackend.collapse_state()JaxBackend.compile()JaxBackend.connectivityJaxBackend.depolarizing_error_density_matrix()JaxBackend.execute_circuit()JaxBackend.execute_circuit_repeated()JaxBackend.execute_circuits()JaxBackend.execute_distributed_circuit()JaxBackend.identity_density_matrix()JaxBackend.is_sparse()JaxBackend.matrix_parametrized()JaxBackend.nativesJaxBackend.qubitsJaxBackend.random_choice()JaxBackend.reset_error_density_matrix()JaxBackend.sample_frequencies()JaxBackend.samples_to_binary()JaxBackend.samples_to_decimal()JaxBackend.set_device()JaxBackend.set_dtype()JaxBackend.set_threads()JaxBackend.thermal_error_density_matrix()JaxBackend.zeros()JaxBackend.apply_gate_density_matrix()
- qiboml.backends.pytorch module
TorchMatricesTorchMatrices._cast()TorchMatrices.I()TorchMatrices.Unitary()TorchMatrices.Align()TorchMatrices.CCZTorchMatrices.CNOTTorchMatrices.CRX()TorchMatrices.CRY()TorchMatrices.CRZ()TorchMatrices.CSXTorchMatrices.CSXDGTorchMatrices.CU1()TorchMatrices.CU2()TorchMatrices.CU3()TorchMatrices.CYTorchMatrices.CZTorchMatrices.CallbackGate()TorchMatrices.DEUTSCH()TorchMatrices.ECRTorchMatrices.FSWAPTorchMatrices.FanOut()TorchMatrices.FusedGate()TorchMatrices.GIVENS()TorchMatrices.GPI()TorchMatrices.GPI2()TorchMatrices.GeneralizedRBS()TorchMatrices.GeneralizedfSim()TorchMatrices.HTorchMatrices.M()TorchMatrices.MS()TorchMatrices.PRX()TorchMatrices.PartialTrace()TorchMatrices.PauliNoiseChannel()TorchMatrices.RBS()TorchMatrices.RX()TorchMatrices.RXX()TorchMatrices.RXXYY()TorchMatrices.RY()TorchMatrices.RYY()TorchMatrices.RZ()TorchMatrices.RZX()TorchMatrices.RZZ()TorchMatrices.ResetChannel()TorchMatrices.STorchMatrices.SDGTorchMatrices.SWAPTorchMatrices.SXTorchMatrices.SXDGTorchMatrices.SYCTorchMatrices.SiSWAPTorchMatrices.SiSWAPDGTorchMatrices.TTorchMatrices.TDGTorchMatrices.TOFFOLITorchMatrices.ThermalRelaxationChannel()TorchMatrices.U1()TorchMatrices.U1q()TorchMatrices.U2()TorchMatrices.U3()TorchMatrices.UnitaryChannel()TorchMatrices.XTorchMatrices.YTorchMatrices.ZTorchMatrices.fSim()TorchMatrices.iSWAP
PyTorchBackendPyTorchBackend._torch_dtype()PyTorchBackend.set_device()PyTorchBackend.cast()PyTorchBackend.matrix_fused()PyTorchBackend.matrix_parametrized()PyTorchBackend._cast_parameter()PyTorchBackend.is_sparse()PyTorchBackend.to_numpy()PyTorchBackend._order_probabilities()PyTorchBackend.calculate_probabilities()PyTorchBackend.set_seed()PyTorchBackend.sample_shots()PyTorchBackend.calculate_eigenvalues()PyTorchBackend.calculate_eigenvectors()PyTorchBackend.calculate_matrix_exp()PyTorchBackend.calculate_matrix_power()PyTorchBackend.calculate_jacobian_matrix()PyTorchBackend._test_regressions()PyTorchBackend._abc_implPyTorchBackend._append_zeros()PyTorchBackend.aggregate_shots()PyTorchBackend.apply_bitflips()PyTorchBackend.apply_channel()PyTorchBackend.apply_channel_density_matrix()PyTorchBackend.apply_gate()PyTorchBackend.apply_gate_density_matrix()PyTorchBackend.apply_gate_half_density_matrix()PyTorchBackend.assert_allclose()PyTorchBackend.assert_circuitclose()PyTorchBackend.calculate_expectation_density_matrix()PyTorchBackend.calculate_expectation_state()PyTorchBackend.calculate_frequencies()PyTorchBackend.calculate_matrix_log()PyTorchBackend.calculate_matrix_norm()PyTorchBackend.calculate_matrix_sqrt()PyTorchBackend.calculate_overlap()PyTorchBackend.calculate_overlap_density_matrix()PyTorchBackend.calculate_probabilities_density_matrix()PyTorchBackend.calculate_singular_value_decomposition()PyTorchBackend.calculate_symbolic()PyTorchBackend.calculate_symbolic_density_matrix()PyTorchBackend.calculate_vector_norm()PyTorchBackend.collapse_density_matrix()PyTorchBackend.collapse_state()PyTorchBackend.compile()PyTorchBackend.connectivityPyTorchBackend.depolarizing_error_density_matrix()PyTorchBackend.execute_circuit()PyTorchBackend.execute_circuit_repeated()PyTorchBackend.execute_circuits()PyTorchBackend.execute_distributed_circuit()PyTorchBackend.identity_density_matrix()PyTorchBackend.matrix()PyTorchBackend.nativesPyTorchBackend.plus_density_matrix()PyTorchBackend.plus_state()PyTorchBackend.qubitsPyTorchBackend.random_choice()PyTorchBackend.reset_error_density_matrix()PyTorchBackend.sample_frequencies()PyTorchBackend.samples_to_binary()PyTorchBackend.samples_to_decimal()PyTorchBackend.set_dtype()PyTorchBackend.set_threads()PyTorchBackend.thermal_error_density_matrix()PyTorchBackend.update_frequencies()PyTorchBackend.zero_density_matrix()PyTorchBackend.zero_state()PyTorchBackend.zeros()
- qiboml.backends.tensorflow module
TensorflowMatricesTensorflowMatrices._cast()TensorflowMatrices.Unitary()TensorflowMatrices.Align()TensorflowMatrices.CCZTensorflowMatrices.CNOTTensorflowMatrices.CRX()TensorflowMatrices.CRY()TensorflowMatrices.CRZ()TensorflowMatrices.CSXTensorflowMatrices.CSXDGTensorflowMatrices.CU1()TensorflowMatrices.CU2()TensorflowMatrices.CU3()TensorflowMatrices.CYTensorflowMatrices.CZTensorflowMatrices.CallbackGate()TensorflowMatrices.DEUTSCH()TensorflowMatrices.ECRTensorflowMatrices.FSWAPTensorflowMatrices.FanOut()TensorflowMatrices.FusedGate()TensorflowMatrices.GIVENS()TensorflowMatrices.GPI()TensorflowMatrices.GPI2()TensorflowMatrices.GeneralizedRBS()TensorflowMatrices.GeneralizedfSim()TensorflowMatrices.HTensorflowMatrices.I()TensorflowMatrices.M()TensorflowMatrices.MS()TensorflowMatrices.PRX()TensorflowMatrices.PartialTrace()TensorflowMatrices.PauliNoiseChannel()TensorflowMatrices.RBS()TensorflowMatrices.RX()TensorflowMatrices.RXX()TensorflowMatrices.RXXYY()TensorflowMatrices.RY()TensorflowMatrices.RYY()TensorflowMatrices.RZ()TensorflowMatrices.RZX()TensorflowMatrices.RZZ()TensorflowMatrices.ResetChannel()TensorflowMatrices.STensorflowMatrices.SDGTensorflowMatrices.SWAPTensorflowMatrices.SXTensorflowMatrices.SXDGTensorflowMatrices.SYCTensorflowMatrices.SiSWAPTensorflowMatrices.SiSWAPDGTensorflowMatrices.TTensorflowMatrices.TDGTensorflowMatrices.TOFFOLITensorflowMatrices.ThermalRelaxationChannel()TensorflowMatrices.U1()TensorflowMatrices.U1q()TensorflowMatrices.U2()TensorflowMatrices.U3()TensorflowMatrices.UnitaryChannel()TensorflowMatrices.XTensorflowMatrices.YTensorflowMatrices.ZTensorflowMatrices.fSim()TensorflowMatrices.iSWAP
TensorflowBackendTensorflowBackend.set_device()TensorflowBackend.set_threads()TensorflowBackend.cast()TensorflowBackend.is_sparse()TensorflowBackend.to_numpy()TensorflowBackend.compile()TensorflowBackend.zero_state()TensorflowBackend.zero_density_matrix()TensorflowBackend.matrix()TensorflowBackend.matrix_parametrized()TensorflowBackend.matrix_fused()TensorflowBackend.execute_circuit()TensorflowBackend.execute_circuit_repeated()TensorflowBackend.sample_shots()TensorflowBackend.samples_to_binary()TensorflowBackend.calculate_frequencies()TensorflowBackend.update_frequencies()TensorflowBackend.calculate_vector_norm()TensorflowBackend.calculate_matrix_norm()TensorflowBackend.calculate_eigenvalues()TensorflowBackend.calculate_eigenvectors()TensorflowBackend.calculate_matrix_exp()TensorflowBackend.calculate_matrix_power()TensorflowBackend._abc_implTensorflowBackend._append_zeros()TensorflowBackend._order_probabilities()TensorflowBackend.aggregate_shots()TensorflowBackend.apply_bitflips()TensorflowBackend.apply_channel()TensorflowBackend.apply_channel_density_matrix()TensorflowBackend.apply_gate()TensorflowBackend.apply_gate_density_matrix()TensorflowBackend.apply_gate_half_density_matrix()TensorflowBackend.assert_allclose()TensorflowBackend.assert_circuitclose()TensorflowBackend.calculate_expectation_density_matrix()TensorflowBackend.calculate_expectation_state()TensorflowBackend.calculate_matrix_log()TensorflowBackend.calculate_matrix_sqrt()TensorflowBackend.calculate_overlap()TensorflowBackend.calculate_overlap_density_matrix()TensorflowBackend.calculate_probabilities()TensorflowBackend.calculate_probabilities_density_matrix()TensorflowBackend.calculate_singular_value_decomposition()TensorflowBackend.calculate_symbolic()TensorflowBackend.calculate_symbolic_density_matrix()TensorflowBackend.collapse_density_matrix()TensorflowBackend.collapse_state()TensorflowBackend.connectivityTensorflowBackend.depolarizing_error_density_matrix()TensorflowBackend.execute_circuits()TensorflowBackend.execute_distributed_circuit()TensorflowBackend.identity_density_matrix()TensorflowBackend.nativesTensorflowBackend.plus_density_matrix()TensorflowBackend.plus_state()TensorflowBackend.qubitsTensorflowBackend.random_choice()TensorflowBackend.reset_error_density_matrix()TensorflowBackend.sample_frequencies()TensorflowBackend.samples_to_decimal()TensorflowBackend.set_dtype()TensorflowBackend.set_seed()TensorflowBackend.thermal_error_density_matrix()TensorflowBackend.zeros()TensorflowBackend.calculate_jacobian_matrix()TensorflowBackend._test_regressions()
- qiboml.models
- Submodules
- qiboml.models.encoding
- qiboml.models.ansatze
- qiboml.models.decoding
QuantumDecodingQuantumDecoding.nqubitsQuantumDecoding.qubitsQuantumDecoding.wire_namesQuantumDecoding.nshotsQuantumDecoding.backendQuantumDecoding.transpilerQuantumDecoding.noise_modelQuantumDecoding.density_matrixQuantumDecoding._circuitQuantumDecoding.__call__()QuantumDecoding.preprocessing()QuantumDecoding.align_circuits()QuantumDecoding.transpile()QuantumDecoding.apply_noise()QuantumDecoding.circuitQuantumDecoding.set_backend()QuantumDecoding.output_shapeQuantumDecoding.analyticQuantumDecoding._align_density_matrix()QuantumDecoding._align_wire_names()QuantumDecoding._temporary_nshots()
ProbabilitiesProbabilities.__call__()Probabilities.output_shapeProbabilities.analyticProbabilities._align_density_matrix()Probabilities._align_wire_names()Probabilities._circuitProbabilities._temporary_nshots()Probabilities.align_circuits()Probabilities.apply_noise()Probabilities.backendProbabilities.circuitProbabilities.density_matrixProbabilities.noise_modelProbabilities.nshotsProbabilities.preprocessing()Probabilities.qubitsProbabilities.set_backend()Probabilities.transpile()Probabilities.transpilerProbabilities.wire_namesProbabilities.nqubits
ExpectationExpectation.observableExpectation.mitigation_configExpectation.calibratorExpectation.__call__()Expectation.output_shapeExpectation.set_backend()Expectation._align_density_matrix()Expectation._align_wire_names()Expectation._circuitExpectation._temporary_nshots()Expectation.align_circuits()Expectation.analyticExpectation.apply_noise()Expectation.backendExpectation.circuitExpectation.density_matrixExpectation.noise_modelExpectation.nshotsExpectation.preprocessing()Expectation.qubitsExpectation.transpile()Expectation.transpilerExpectation.wire_namesExpectation.nqubits
StateState.__call__()State.output_shapeState.analyticState._align_density_matrix()State._align_wire_names()State._circuitState._temporary_nshots()State.align_circuits()State.apply_noise()State.backendState.circuitState.density_matrixState.noise_modelState.nshotsState.preprocessing()State.qubitsState.set_backend()State.transpile()State.transpilerState.wire_namesState.nqubits
SamplesSamples.__call__()Samples.output_shapeSamples.analyticSamples._align_density_matrix()Samples._align_wire_names()Samples._circuitSamples._temporary_nshots()Samples.align_circuits()Samples.apply_noise()Samples.backendSamples.circuitSamples.density_matrixSamples.noise_modelSamples.nshotsSamples.preprocessing()Samples.qubitsSamples.set_backend()Samples.transpile()Samples.transpilerSamples.wire_namesSamples.nqubits
VariationalQuantumLinearSolverVariationalQuantumLinearSolver.target_stateVariationalQuantumLinearSolver.AVariationalQuantumLinearSolver.__call__()VariationalQuantumLinearSolver.output_shapeVariationalQuantumLinearSolver.analyticVariationalQuantumLinearSolver._align_density_matrix()VariationalQuantumLinearSolver._align_wire_names()VariationalQuantumLinearSolver._circuitVariationalQuantumLinearSolver._temporary_nshots()VariationalQuantumLinearSolver.align_circuits()VariationalQuantumLinearSolver.apply_noise()VariationalQuantumLinearSolver.backendVariationalQuantumLinearSolver.circuitVariationalQuantumLinearSolver.density_matrixVariationalQuantumLinearSolver.noise_modelVariationalQuantumLinearSolver.nshotsVariationalQuantumLinearSolver.preprocessing()VariationalQuantumLinearSolver.qubitsVariationalQuantumLinearSolver.set_backend()VariationalQuantumLinearSolver.transpile()VariationalQuantumLinearSolver.transpilerVariationalQuantumLinearSolver.wire_namesVariationalQuantumLinearSolver.nqubits
_real_time_mitigation_check()_check_or_recompute_map()
- qiboml.interfaces
- Submodules
- qiboml.interfaces.pytorch
- qiboml.interfaces.keras
- qiboml.interfaces.circuit_tracer
CircuitTracerCircuitTracer.circuit_structureCircuitTracer.derivation_modeCircuitTracer.engineCircuitTracer.jacfwd()CircuitTracer.jacrev()CircuitTracer._compute_jacobian_functional()CircuitTracer.jacobian_functionalsCircuitTracer.nonzero()CircuitTracer._build_parameters_map()CircuitTracer.trace()CircuitTracer.is_encoding_differentiableCircuitTracer.requires_gradient()CircuitTracer._build_from_encoding()CircuitTracer._build_from_circuit()CircuitTracer._build_from_callable()CircuitTracer._get_device()CircuitTracer._get_dtype()CircuitTracer.identity()CircuitTracer.zeros()CircuitTracer.fill_jacobian()CircuitTracer.build_circuit()CircuitTracer._abc_impl
- qiboml.differentiation