Skip to content

Commit 430f9c5

Browse files
committed
Python 3.12: Disable qiskit and tensorflow algorithms
1 parent ace1984 commit 430f9c5

17 files changed

+4
-19
lines changed

.github/workflows/ruff.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
ruff:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- run: pip install --user ruff
1616
- run: ruff --output-format=github .

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pre-commit run --all-files --show-diff-on-failure
7373

7474
We want your work to be readable by others; therefore, we encourage you to note the following:
7575

76-
- Please write in Python 3.11+. For instance: `print()` is a function in Python 3 so `print "Hello"` will *not* work but `print("Hello")` will.
76+
- Please write in Python 3.12+. For instance: `print()` is a function in Python 3 so `print "Hello"` will *not* work but `print("Hello")` will.
7777
- Please focus hard on the naming of functions, classes, and variables. Help your reader by using __descriptive names__ that can help you to remove redundant comments.
7878
- Single letter variable names are *old school* so please avoid them unless their life only spans a few lines.
7979
- Expand acronyms because `gcd()` is hard to understand but `greatest_common_divisor()` is not.

DIRECTORY.md

-17
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@
133133
* [Run Length Encoding](compression/run_length_encoding.py)
134134

135135
## Computer Vision
136-
* [Cnn Classification](computer_vision/cnn_classification.py)
137136
* [Flip Augmentation](computer_vision/flip_augmentation.py)
138137
* [Haralick Descriptors](computer_vision/haralick_descriptors.py)
139138
* [Harris Corner](computer_vision/harris_corner.py)
@@ -321,7 +320,6 @@
321320
* [Floyd Warshall](dynamic_programming/floyd_warshall.py)
322321
* [Integer Partition](dynamic_programming/integer_partition.py)
323322
* [Iterating Through Submasks](dynamic_programming/iterating_through_submasks.py)
324-
* [K Means Clustering Tensorflow](dynamic_programming/k_means_clustering_tensorflow.py)
325323
* [Knapsack](dynamic_programming/knapsack.py)
326324
* [Longest Common Subsequence](dynamic_programming/longest_common_subsequence.py)
327325
* [Longest Common Substring](dynamic_programming/longest_common_substring.py)
@@ -384,9 +382,6 @@
384382
* [Mandelbrot](fractals/mandelbrot.py)
385383
* [Sierpinski Triangle](fractals/sierpinski_triangle.py)
386384

387-
## Fuzzy Logic
388-
* [Fuzzy Operations](fuzzy_logic/fuzzy_operations.py)
389-
390385
## Genetic Algorithm
391386
* [Basic String](genetic_algorithm/basic_string.py)
392387

@@ -517,8 +512,6 @@
517512
* Local Weighted Learning
518513
* [Local Weighted Learning](machine_learning/local_weighted_learning/local_weighted_learning.py)
519514
* [Logistic Regression](machine_learning/logistic_regression.py)
520-
* Lstm
521-
* [Lstm Prediction](machine_learning/lstm/lstm_prediction.py)
522515
* [Mfcc](machine_learning/mfcc.py)
523516
* [Multilayer Perceptron Classifier](machine_learning/multilayer_perceptron_classifier.py)
524517
* [Polynomial Regression](machine_learning/polynomial_regression.py)
@@ -1071,17 +1064,7 @@
10711064
* [Sol1](project_euler/problem_800/sol1.py)
10721065

10731066
## Quantum
1074-
* [Bb84](quantum/bb84.py)
1075-
* [Deutsch Jozsa](quantum/deutsch_jozsa.py)
1076-
* [Half Adder](quantum/half_adder.py)
1077-
* [Not Gate](quantum/not_gate.py)
10781067
* [Q Fourier Transform](quantum/q_fourier_transform.py)
1079-
* [Q Full Adder](quantum/q_full_adder.py)
1080-
* [Quantum Entanglement](quantum/quantum_entanglement.py)
1081-
* [Quantum Teleportation](quantum/quantum_teleportation.py)
1082-
* [Ripple Adder Classic](quantum/ripple_adder_classic.py)
1083-
* [Single Qubit Measure](quantum/single_qubit_measure.py)
1084-
* [Superdense Coding](quantum/superdense_coding.py)
10851068

10861069
## Scheduling
10871070
* [First Come First Served](scheduling/first_come_first_served.py)
File renamed without changes.

quantum/deutsch_jozsa.py renamed to quantum/deutsch_jozsa.py.DISABLED.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# DISABLED!!
12
#!/usr/bin/env python3
23
"""
34
Deutsch-Jozsa Algorithm is one of the first examples of a quantum

quantum/half_adder.py renamed to quantum/half_adder.py.DISABLED.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# DISABLED!!
12
#!/usr/bin/env python3
23
"""
34
Build a half-adder quantum circuit that takes two bits as input,
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)