quantum6g


Namequantum6g JSON
Version 1.3.0 PyPI version JSON
download
home_pagehttps://github.com/quantumpiya/quantum6g
SummaryThis library is an automatic artificial intelligence library that combines Quantum and 6G technologies.
upload_time2023-03-15 23:48:05
maintainer
docs_urlNone
authorQuantum PIYA
requires_python
license
keywords quantum machine-learning quantum cnn qcnn quantum convolutional neural network quantum 6g 6g quantum ai quantum neural networks qnn quantum ai artificial intelligence
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# Quantum6G: Auto AI Advanced Quantum Neural Networks with 6G Technology
Quantum6G is an automatic artificial intelligence library that combines quantum computing and 6G technologies to build advanced quantum neural networks. It provides a high-level interface for constructing, training, and evaluating quantum neural networks. This library was developed by [Quantum PIYA](https://www.piya.ai).

## Installation
To install the Quantum6G library, simply run the following command: 

```
pip install quantum6g
```

## Getting Started
Here is a simple example to get started with the Quantum6G library:

``` 
from quantum6g import Quantum6G
```

## Create a quantum neural network

``` quantum_6g = Quantum6G(output_unit=1, num_layers=4, epochs=2, loss='mse', input=4, batch_size=256, learning_rate=0.2)```

## Build the model
``` 
quantum_6g = quantum_6g.build_model(X_train, y_train, X_test, y_test)
```

## Evaluate the model
``` 
print("Accuracy: {:.2f}%".format(quantum_6g[1][1] * 100))
print("Loss: {:.2f}%".format(quantum_6g[1][0] * 100))
```

## Build and Fit Quantum6G_KNN --- from v1.2.5V
``` 
quantum_knn = Quantum6G_KNN(n_qubits=4, n_neighbors=6)
quantum_knn.fit(X_train, y_train)
```
## Evaluate the Quantum6G_KNN model
``` 
quantum_pred = quantum_knn.predict(X_test,y_test)
quantum_accuracy = accuracy_score(y_test, quantum_pred)
print(f"Accuracy of Quantum6G_KNN: {quantum_accuracy:.3f}")
```
## Build Quantum Model for QCNN (Quantum Convolutional Neural Network) --- from v1.3.0V
``` 
q_cnn = QCNN(
    input_shape=(2, 2, 1),
    output_neurons=10,
    loss_function="sparse_categorical_crossentropy",
    epochs=5,
    batch_size=32,
    optimizer="adam",
    n_layers=1,
    n_wires=4,
)
q_cnn_model = q_cnn.build_model()

```
## Evaluate the QCNN model
``` 
q_cnn.benchmark(q_cnn_model, x_train_resized[..., np.newaxis], y_train, x_test_resized[..., np.newaxis], y_test)

```

## Donate
You can donate for this project!

**ETH - ERC20**: 0xa6F7170Ca63cf284A8ba6339b565445468E04Ff2

**BTC - Bech32**: bc1qfek2lun4tc7d7zftz0v4auxc9dzn77h9xq9x26v02u6s3rgl7hesxt4r2h

**USDT - TRC20**: TWVcF24DjPnGfhegmJjBQw2iE4vxQBuYTY

## Documentation
For more information on how to use the Quantum6G library, please refer to the documentation available at [the soon].

## Contributing
We welcome contributions to the Quantum6G library. If you would like to contribute, please fork the repository and make your changes, then submit a pull request.

## License
The Quantum6G library is open source and released under the MIT license. For more information, please see the [LICENSE](https://choosealicense.com/licenses/mit/) file.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/quantumpiya/quantum6g",
    "name": "quantum6g",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "quantum machine-learning,quantum cnn,qcnn,quantum convolutional neural network,quantum 6g,6g,quantum,AI,quantum neural networks,qnn,quantum ai,artificial intelligence",
    "author": "Quantum PIYA",
    "author_email": "emirhan@piya.ai",
    "download_url": "",
    "platform": null,
    "description": "\r\n# Quantum6G: Auto AI Advanced Quantum Neural Networks with 6G Technology\r\nQuantum6G is an automatic artificial intelligence library that combines quantum computing and 6G technologies to build advanced quantum neural networks. It provides a high-level interface for constructing, training, and evaluating quantum neural networks. This library was developed by [Quantum PIYA](https://www.piya.ai).\r\n\r\n## Installation\r\nTo install the Quantum6G library, simply run the following command: \r\n\r\n```\r\npip install quantum6g\r\n```\r\n\r\n## Getting Started\r\nHere is a simple example to get started with the Quantum6G library:\r\n\r\n``` \r\nfrom quantum6g import Quantum6G\r\n```\r\n\r\n## Create a quantum neural network\r\n\r\n``` quantum_6g = Quantum6G(output_unit=1, num_layers=4, epochs=2, loss='mse', input=4, batch_size=256, learning_rate=0.2)```\r\n\r\n## Build the model\r\n``` \r\nquantum_6g = quantum_6g.build_model(X_train, y_train, X_test, y_test)\r\n```\r\n\r\n## Evaluate the model\r\n``` \r\nprint(\"Accuracy: {:.2f}%\".format(quantum_6g[1][1] * 100))\r\nprint(\"Loss: {:.2f}%\".format(quantum_6g[1][0] * 100))\r\n```\r\n\r\n## Build and Fit Quantum6G_KNN --- from v1.2.5V\r\n``` \r\nquantum_knn = Quantum6G_KNN(n_qubits=4, n_neighbors=6)\r\nquantum_knn.fit(X_train, y_train)\r\n```\r\n## Evaluate the Quantum6G_KNN model\r\n``` \r\nquantum_pred = quantum_knn.predict(X_test,y_test)\r\nquantum_accuracy = accuracy_score(y_test, quantum_pred)\r\nprint(f\"Accuracy of Quantum6G_KNN: {quantum_accuracy:.3f}\")\r\n```\r\n## Build Quantum Model for QCNN (Quantum Convolutional Neural Network) --- from v1.3.0V\r\n``` \r\nq_cnn = QCNN(\r\n    input_shape=(2, 2, 1),\r\n    output_neurons=10,\r\n    loss_function=\"sparse_categorical_crossentropy\",\r\n    epochs=5,\r\n    batch_size=32,\r\n    optimizer=\"adam\",\r\n    n_layers=1,\r\n    n_wires=4,\r\n)\r\nq_cnn_model = q_cnn.build_model()\r\n\r\n```\r\n## Evaluate the QCNN model\r\n``` \r\nq_cnn.benchmark(q_cnn_model, x_train_resized[..., np.newaxis], y_train, x_test_resized[..., np.newaxis], y_test)\r\n\r\n```\r\n\r\n## Donate\r\nYou can donate for this project!\r\n\r\n**ETH - ERC20**: 0xa6F7170Ca63cf284A8ba6339b565445468E04Ff2\r\n\r\n**BTC - Bech32**: bc1qfek2lun4tc7d7zftz0v4auxc9dzn77h9xq9x26v02u6s3rgl7hesxt4r2h\r\n\r\n**USDT - TRC20**: TWVcF24DjPnGfhegmJjBQw2iE4vxQBuYTY\r\n\r\n## Documentation\r\nFor more information on how to use the Quantum6G library, please refer to the documentation available at [the soon].\r\n\r\n## Contributing\r\nWe welcome contributions to the Quantum6G library. If you would like to contribute, please fork the repository and make your changes, then submit a pull request.\r\n\r\n## License\r\nThe Quantum6G library is open source and released under the MIT license. For more information, please see the [LICENSE](https://choosealicense.com/licenses/mit/) file.\r\n\r\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "This library is an automatic artificial intelligence library that combines Quantum and 6G technologies.",
    "version": "1.3.0",
    "split_keywords": [
        "quantum machine-learning",
        "quantum cnn",
        "qcnn",
        "quantum convolutional neural network",
        "quantum 6g",
        "6g",
        "quantum",
        "ai",
        "quantum neural networks",
        "qnn",
        "quantum ai",
        "artificial intelligence"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a623dee1044f66c1b930de0c946ba65bf890ed54c7e9c8dd2e60ae4e0b86b296",
                "md5": "f2883f4690b16af5a935c05c7a5ad0c1",
                "sha256": "c54cdeb9e6f9ffd5e6a14a95a6d08b4e026124ea3bcdac17ae33d1ffea265e00"
            },
            "downloads": -1,
            "filename": "quantum6g-1.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f2883f4690b16af5a935c05c7a5ad0c1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6147,
            "upload_time": "2023-03-15T23:48:05",
            "upload_time_iso_8601": "2023-03-15T23:48:05.305928Z",
            "url": "https://files.pythonhosted.org/packages/a6/23/dee1044f66c1b930de0c946ba65bf890ed54c7e9c8dd2e60ae4e0b86b296/quantum6g-1.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-15 23:48:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "quantumpiya",
    "github_project": "quantum6g",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "quantum6g"
}
        
Elapsed time: 0.05980s