API reference#
In this section we present the main Qibo components and primitives included in the public API.
- Models
- Circuit models
- Circuit
- Circuit addition
- Circuit fusion
- Quantum Fourier Transform (QFT)
- Variational Quantum Eigensolver (VQE)
- Adiabatically Assisted Variational Quantum Eigensolver (AAVQE)
- Quantum Approximate Optimization Algorithm (QAOA)
- Feedback-based Algorithm for Quantum Optimization (FALQON)
- Grover’s Algorithm
- Travelling Salesman Problem
- Iterative Quantum Amplitude Estimation (IQAE)
- Double Bracket Iteration algorithm for Diagonalization
- Time evolution
- Data Encoders
- Error Mitigation
- Circuit models
- Gates
- Abstract gate
- Single qubit gates
- Two qubit gates
- Controlled-NOT (CNOT)
- Controlled-Y (CY)
- Controlled-phase (CZ)
- Controlled-Square Root of X (CSX)
- Controlled-rotation X-axis (CRX)
- Controlled-rotation Y-axis (CRY)
- Controlled-rotation Z-axis (CRZ)
- Controlled first general unitary (CU1)
- Controlled second general unitary (CU2)
- Controlled third general unitary (CU3)
- Swap (SWAP)
- iSwap (iSWAP)
- Square root of iSwap (SiSWAP)
- f-Swap (FSWAP)
- fSim
- Sycamore gate
- fSim with general rotation
- Parametric XX interaction (RXX)
- Parametric YY interaction (RYY)
- Parametric ZZ interaction (RZZ)
- Parametric ZX interaction (RZX)
- Parametric XX-YY interaction (RXXYY)
- Givens gate
- Reconfigurable Beam Splitter gate (RBS)
- Echo Cross-Resonance gate (ECR)
- Special gates
- IONQ Native gates
- Quantinuum native gates
- IQM native gates
- Channels
- Noise
- Hamiltonians
- Symbols
- Execution Outcomes
QuantumState
MeasurementOutcomes
MeasurementOutcomes.frequencies()
MeasurementOutcomes.probabilities()
MeasurementOutcomes.has_samples()
MeasurementOutcomes.samples()
MeasurementOutcomes.measurement_gate
MeasurementOutcomes.apply_bitflips()
MeasurementOutcomes.expectation_from_samples()
MeasurementOutcomes.to_dict()
MeasurementOutcomes.dump()
MeasurementOutcomes.from_dict()
MeasurementOutcomes.load()
CircuitResult
- Callbacks
- Solvers
- Optimizers
- Parameter
- Gradients
- Quantum Information
- Basis
- Phase-space Representation of Stabilizer States
- Entanglement measures
- Entropy measures
- Shannon entropy
- Classical relative entropy
- Classical mutual information
- Classical Rényi entropy
- Classical Rényi relative entropy
- Classical Tsallis entropy
- Classical Tsallis relative entropy
- von Neumann entropy
- Relative von Neumann entropy
- Mutual information
- Rényi entropy
- Relative Rényi entropy
- Tsallis entropy
- Relative Tsallis entropy
- Entanglement entropy
- Metrics
- Purity
- Impurity
- Trace distance
- Hilbert-Schmidt inner product
- Hilbert-Schmidt distance
- Fidelity
- Infidelity
- Bures angle
- Bures distance
- Process fidelity
- Process infidelity
- Average gate fidelity
- Gate error
- Diamond Norm
- Expressibility of parameterized quantum circuits
- Frame Potential
- Quantum Fisher Information Matrix
- Linear Algebra Operations
- Quantum Networks
- Random Ensembles
- Superoperator Transformations
- Vectorization
- Unvectorization
- To Choi
- To Liouville
- To Pauli-Liouville
- To Chi
- To Stinespring
- Choi to Liouville
- Choi to Pauli-Liouville
- Choi to Kraus
- Choi to Chi-matrix
- Choi to Stinespring
- Kraus to Choi
- Kraus to Liouville
- Kraus to Pauli-Liouville
- Kraus to Chi-matrix
- Kraus to Stinespring
- Liouville to Choi
- Liouville to Pauli-Liouville
- Liouville to Kraus
- Liouville to Chi-matrix
- Liouville to Stinespring
- Pauli-Liouville to Liouville
- Pauli-Liouville to Choi
- Pauli-Liouville to Kraus
- Pauli-Liouville to Chi-matrix
- Pauli-Liouville to Stinespring
- Chi-matrix to Choi
- Chi-matrix to Liouville
- Chi-matrix to Pauli-Liouville
- Chi-matrix to Kraus
- Chi-matrix to Stinespring
- Stinespring to Choi
- Stinespring to Liouville
- Stinespring to Pauli-Liouville
- Stinespring to Kraus
- Stinespring to Chi-matrix
- Kraus operators as probabilistic sum of unitaries
- Utility Functions
- Tomography
- Parallelism
- Backends
Backend
Backend.qubits
Backend.connectivity
Backend.natives
Backend.set_precision()
Backend.set_device()
Backend.set_threads()
Backend.cast()
Backend.is_sparse()
Backend.to_numpy()
Backend.compile()
Backend.zero_state()
Backend.zero_density_matrix()
Backend.identity_density_matrix()
Backend.plus_state()
Backend.plus_density_matrix()
Backend.matrix()
Backend.matrix_parametrized()
Backend.matrix_fused()
Backend.apply_gate()
Backend.apply_gate_density_matrix()
Backend.apply_gate_half_density_matrix()
Backend.apply_channel()
Backend.apply_channel_density_matrix()
Backend.collapse_state()
Backend.collapse_density_matrix()
Backend.reset_error_density_matrix()
Backend.thermal_error_density_matrix()
Backend.execute_circuit()
Backend.execute_circuits()
Backend.execute_circuit_repeated()
Backend.execute_distributed_circuit()
Backend.calculate_symbolic()
Backend.calculate_symbolic_density_matrix()
Backend.calculate_probabilities()
Backend.calculate_probabilities_density_matrix()
Backend.set_seed()
Backend.sample_shots()
Backend.aggregate_shots()
Backend.samples_to_binary()
Backend.samples_to_decimal()
Backend.calculate_frequencies()
Backend.sample_frequencies()
Backend.calculate_norm()
Backend.calculate_norm_density_matrix()
Backend.calculate_overlap()
Backend.calculate_overlap_density_matrix()
Backend.calculate_eigenvalues()
Backend.calculate_eigenvectors()
Backend.calculate_expectation_state()
Backend.calculate_expectation_density_matrix()
Backend.calculate_matrix_exp()
Backend.calculate_matrix_power()
Backend.calculate_singular_value_decomposition()
Backend.calculate_jacobian_matrix()
Backend.calculate_hamiltonian_matrix_product()
Backend.calculate_hamiltonian_state_product()
- Clifford Simulation
- Cloud Backends
- Models for High Energy Physics