class QPanda::QuantumMetadata

Parse xml config and get metadata.

#include <QuantumMetadata.h>

class QuantumMetadata
{
public:
    // construction

    QuantumMetadata(const std::string& filename = CONFIG_PATH);

    // methods

    QuantumMetadata& operator = (const QuantumMetadata&);

    bool getMetadata(
        int& qubit_num,
        std::vector<std::vector<double>>& matrix
        );

    bool getQGate(
        std::vector<std::string>& single_gates,
        std::vector<std::string>& double_gates
        );

    bool getGateTime(std::map<GateType, size_t>& gate_time_map);
};