gate_factory.cpp File Reference
#include <cmath>
#include <cstring>
#include <cstdlib>
#include "gate_factory.hpp"
#include "gate.hpp"
#include "gate_named_one.hpp"
#include "gate_named_two.hpp"
#include "gate_named_pauli.hpp"
#include "gate_matrix.hpp"
#include "type.hpp"

Namespaces

 gate
 

Macros

#define _USE_MATH_DEFINES
 

Functions

ComplexMatrix gate::get_IBMQ_matrix (double theta, double phi, double lambda)
 
QuantumGateBasegate::Identity (UINT qubit_index)
 
QuantumGateBasegate::X (UINT qubit_index)
 
QuantumGateBasegate::Y (UINT qubit_index)
 
QuantumGateBasegate::Z (UINT qubit_index)
 
QuantumGateBasegate::H (UINT qubit_index)
 
QuantumGateBasegate::S (UINT qubit_index)
 
QuantumGateBasegate::Sdag (UINT qubit_index)
 
QuantumGateBasegate::T (UINT qubit_index)
 
QuantumGateBasegate::Tdag (UINT qubit_index)
 
QuantumGateBasegate::sqrtX (UINT qubit_index)
 
QuantumGateBasegate::sqrtXdag (UINT qubit_index)
 
QuantumGateBasegate::sqrtY (UINT qubit_index)
 
QuantumGateBasegate::sqrtYdag (UINT qubit_index)
 
QuantumGateBasegate::P0 (UINT qubit_index)
 
QuantumGateBasegate::P1 (UINT qubit_index)
 
QuantumGateBasegate::RX (UINT qubit_index, double angle)
 
QuantumGateBasegate::RY (UINT qubit_index, double angle)
 
QuantumGateBasegate::RZ (UINT qubit_index, double angle)
 
QuantumGateBasegate::U1 (UINT qubit_index, double lambda)
 
QuantumGateBasegate::U2 (UINT qubit_index, double phi, double lambda)
 
QuantumGateBasegate::U3 (UINT qubit_index, double theta, double phi, double lambda)
 
QuantumGateBasegate::CNOT (UINT control_qubit_index, UINT target_qubit_index)
 
QuantumGateBasegate::CZ (UINT control_qubit_index, UINT target_qubit_index)
 
QuantumGateBasegate::SWAP (UINT qubit_index1, UINT qubit_index2)
 
QuantumGateBasegate::Pauli (std::vector< UINT > target, std::vector< UINT > pauli_id)
 
QuantumGateBasegate::PauliRotation (std::vector< UINT > target, std::vector< UINT > pauli_id, double angle)
 
QuantumGateMatrixgate::DenseMatrix (UINT target_index, ComplexMatrix matrix)
 
QuantumGateMatrixgate::DenseMatrix (std::vector< UINT > target_list, ComplexMatrix matrix)
 
QuantumGateBasegate::BitFlipNoise (UINT target_index, double prob)
 
QuantumGateBasegate::DephasingNoise (UINT target_index, double prob)
 
QuantumGateBasegate::IndependentXZNoise (UINT target_index, double prob)
 
QuantumGateBasegate::DepolarizingNoise (UINT target_index, double prob)
 
QuantumGateBasegate::Measurement (UINT target_index, UINT classical_register_address)
 
QuantumGateBasegate::create_quantum_gate_from_string (std::string gate_string)
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES